Moving parent constructor call until after $helpers has been modified. Fixes #1443

This commit is contained in:
mark_story 2011-01-14 17:17:53 -05:00
parent d15ed329d9
commit 17b5351aa3

View file

@ -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);
} }
/** /**