summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/TClientScriptManager.php')
-rw-r--r--framework/Web/UI/TClientScriptManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/TClientScriptManager.php b/framework/Web/UI/TClientScriptManager.php
index 1ea4175d..39c23b99 100644
--- a/framework/Web/UI/TClientScriptManager.php
+++ b/framework/Web/UI/TClientScriptManager.php
@@ -20,7 +20,7 @@ Prado::using('System.Web.Javascripts.*');
* @package System.Web.UI
* @since 3.0
*/
-class TClientScriptManager extends TComponent
+class TClientScriptManager extends TApplicationComponent
{
const SCRIPT_DIR='Web/Javascripts/js';
//const POSTBACK_FUNC='Prado.doPostBack';
@@ -123,7 +123,7 @@ class TClientScriptManager extends TComponent
//create the client script url
$url = $this->publishClientScriptCompressorAsset();
$url .= '?js='.implode(',', $scripts);
- if(Prado::getApplication()->getMode() == TApplication::STATE_DEBUG)
+ if($this->getApplication()->getMode() == TApplication::STATE_DEBUG)
$url .= '&__nocache';
$this->registerScriptFile('prado:gzipscripts', $url);
}