mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Calling parent constructors in helpers that have it omitted. Fixes #1359
This commit is contained in:
parent
d7e62b88bc
commit
5ffc84d28a
2 changed files with 2 additions and 0 deletions
|
@ -501,6 +501,7 @@ class JsBaseEngineHelper extends AppHelper {
|
|||
* @return void
|
||||
*/
|
||||
function __construct() {
|
||||
parent::__construct();
|
||||
$this->useNative = function_exists('json_encode');
|
||||
}
|
||||
|
||||
|
|
|
@ -88,6 +88,7 @@ class PaginatorHelper extends AppHelper {
|
|||
* @return void
|
||||
*/
|
||||
function __construct($config = array()) {
|
||||
parent::__construct($config);
|
||||
$ajaxProvider = isset($config['ajax']) ? $config['ajax'] : 'Js';
|
||||
$this->helpers[] = $ajaxProvider;
|
||||
$this->_ajaxHelperClass = $ajaxProvider;
|
||||
|
|
Loading…
Add table
Reference in a new issue