mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Moving parent constructor call until after $helpers has been modified. Fixes #1443
This commit is contained in:
parent
d15ed329d9
commit
17b5351aa3
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,6 @@ class PaginatorHelper extends AppHelper {
|
||||||
* @throws CakeException When the AjaxProvider helper does not implement a link method.
|
* @throws CakeException When the AjaxProvider helper does not implement a link method.
|
||||||
*/
|
*/
|
||||||
function __construct(View $View, $settings = array()) {
|
function __construct(View $View, $settings = array()) {
|
||||||
parent::__construct($View, $settings);
|
|
||||||
$ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
|
$ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
|
||||||
$this->helpers[] = $ajaxProvider;
|
$this->helpers[] = $ajaxProvider;
|
||||||
$this->_ajaxHelperClass = $ajaxProvider;
|
$this->_ajaxHelperClass = $ajaxProvider;
|
||||||
|
@ -106,6 +105,7 @@ class PaginatorHelper extends AppHelper {
|
||||||
__('%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname
|
__('%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
parent::__construct($View, $settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue