From 227ed6ef27214d2e1a3ca4ccaf4540011e62d60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Lorenzo=20Rodri=CC=81guez?= Date: Mon, 14 Feb 2011 00:19:06 -0430 Subject: [PATCH] Fixing the Js engine helpers --- lib/Cake/View/Helper/JsBaseEngineHelper.php | 2 +- lib/Cake/tests/cases/libs/view/helpers/mootools_engine.test.php | 1 + .../tests/cases/libs/view/helpers/prototype_engine.test.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/JsBaseEngineHelper.php b/lib/Cake/View/Helper/JsBaseEngineHelper.php index 771b43a98..ade4ca558 100644 --- a/lib/Cake/View/Helper/JsBaseEngineHelper.php +++ b/lib/Cake/View/Helper/JsBaseEngineHelper.php @@ -74,7 +74,7 @@ abstract class JsBaseEngineHelper extends AppHelper { * Constructor. * */ - function __construct() { + function __construct($View, $settings = array()) { parent::__construct($View, $settings); $this->useNative = function_exists('json_encode'); } diff --git a/lib/Cake/tests/cases/libs/view/helpers/mootools_engine.test.php b/lib/Cake/tests/cases/libs/view/helpers/mootools_engine.test.php index 1f65343b6..d3cf5ac35 100644 --- a/lib/Cake/tests/cases/libs/view/helpers/mootools_engine.test.php +++ b/lib/Cake/tests/cases/libs/view/helpers/mootools_engine.test.php @@ -21,6 +21,7 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('View', 'View'); App::uses('HtmlHelper', 'View/Helper'); App::uses('JsHelper', 'View/Helper'); App::uses('MootoolsEngineHelper', 'View/Helper'); diff --git a/lib/Cake/tests/cases/libs/view/helpers/prototype_engine.test.php b/lib/Cake/tests/cases/libs/view/helpers/prototype_engine.test.php index 93d7d9e19..49f9c0e4a 100644 --- a/lib/Cake/tests/cases/libs/view/helpers/prototype_engine.test.php +++ b/lib/Cake/tests/cases/libs/view/helpers/prototype_engine.test.php @@ -19,6 +19,7 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +App::uses('View', 'View'); App::uses('HtmlHelper', 'View/Helper'); App::uses('JsHelper', 'View/Helper'); App::uses('PrototypeEngineHelper', 'View/Helper');