Permalink
Browse files

Calling parent constructors in helpers that have it omitted. Fixes #1359

  • Loading branch information...
1 parent d7e62b8 commit 5ffc84d28a82de9b12eb85c71de1fed760472143 @markstory markstory committed Dec 13, 2010
Showing with 2 additions and 0 deletions.
  1. +1 −0 cake/libs/view/helpers/js.php
  2. +1 −0 cake/libs/view/helpers/paginator.php
@@ -501,6 +501,7 @@ class JsBaseEngineHelper extends AppHelper {
* @return void
*/
function __construct() {
+ parent::__construct();
$this->useNative = function_exists('json_encode');
}
@@ -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;

0 comments on commit 5ffc84d

Please sign in to comment.