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

This commit is contained in:
mark_story 2010-12-12 21:14:30 -05:00
parent d7e62b88bc
commit 5ffc84d28a
2 changed files with 2 additions and 0 deletions

View file

@ -501,6 +501,7 @@ class JsBaseEngineHelper extends AppHelper {
* @return void
*/
function __construct() {
parent::__construct();
$this->useNative = function_exists('json_encode');
}

View file

@ -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;