From 17b5351aa3300464faf13f94ea2e1afd1717aabc Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 14 Jan 2011 17:17:53 -0500 Subject: [PATCH] Moving parent constructor call until after $helpers has been modified. Fixes #1443 --- cake/libs/view/helpers/paginator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/paginator.php b/cake/libs/view/helpers/paginator.php index e9d4c5565..e84ed1a74 100755 --- a/cake/libs/view/helpers/paginator.php +++ b/cake/libs/view/helpers/paginator.php @@ -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; @@ -106,6 +105,7 @@ class PaginatorHelper extends AppHelper { __('%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname )); } + parent::__construct($View, $settings); } /**