From 60981fcb4bedd3b8929caafc23031bde67313f7a Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 9 Sep 2011 21:35:44 -0400 Subject: [PATCH] Hardcoding 'app' in JsHelper Applying patch from 'Jelle Henkens'. Hardcoding this value fixes issues where the variable name would change if you renamed your app directory. Fixes environment specific bugs. Fixes #1981 --- cake/libs/view/helpers/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index 42f20e218..a41ca6fc3 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -76,7 +76,7 @@ class JsHelper extends AppHelper { * @var string * @access public */ - var $setVariable = APP_DIR; + var $setVariable = 'app'; /** * Constructor - determines engine helper