Skip to content

Commit

Permalink
Moving parent constructor call until after $helpers has been modified.
Browse files Browse the repository at this point in the history
…Fixes #1443
  • Loading branch information
markstory committed Jan 14, 2011
1 parent d15ed32 commit 17b5351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/view/helpers/paginator.php
Expand Up @@ -93,7 +93,6 @@ class PaginatorHelper extends AppHelper {
* @throws CakeException When the AjaxProvider helper does not implement a link method.
*/
function __construct(View $View, $settings = array()) {
parent::__construct($View, $settings);
$ajaxProvider = isset($settings['ajax']) ? $settings['ajax'] : 'Js';
$this->helpers[] = $ajaxProvider;
$this->_ajaxHelperClass = $ajaxProvider;
Expand All @@ -106,6 +105,7 @@ function __construct(View $View, $settings = array()) {
__('%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname
));
}
parent::__construct($View, $settings);
}

/**
Expand Down

0 comments on commit 17b5351

Please sign in to comment.