Skip to content

Commit

Permalink
Calling parent constructors in helpers that have it omitted. Fixes #1359
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 13, 2010
1 parent d7e62b8 commit 5ffc84d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cake/libs/view/helpers/js.php
Expand Up @@ -501,6 +501,7 @@ class JsBaseEngineHelper extends AppHelper {
* @return void
*/
function __construct() {
parent::__construct();
$this->useNative = function_exists('json_encode');
}

Expand Down
1 change: 1 addition & 0 deletions cake/libs/view/helpers/paginator.php
Expand Up @@ -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;
Expand Down

0 comments on commit 5ffc84d

Please sign in to comment.