From 5ffc84d28a82de9b12eb85c71de1fed760472143 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 12 Dec 2010 21:14:30 -0500 Subject: [PATCH] Calling parent constructors in helpers that have it omitted. Fixes #1359 --- cake/libs/view/helpers/js.php | 1 + cake/libs/view/helpers/paginator.php | 1 + 2 files changed, 2 insertions(+) diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index 546792c68..5c3571bef 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -501,6 +501,7 @@ class JsBaseEngineHelper extends AppHelper { * @return void */ function __construct() { + parent::__construct(); $this->useNative = function_exists('json_encode'); } diff --git a/cake/libs/view/helpers/paginator.php b/cake/libs/view/helpers/paginator.php index f3bb2cdb0..ca5f45541 100644 --- a/cake/libs/view/helpers/paginator.php +++ b/cake/libs/view/helpers/paginator.php @@ -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;