summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TClientScriptManager.php
diff options
context:
space:
mode:
authorxue <>2006-02-17 18:50:55 +0000
committerxue <>2006-02-17 18:50:55 +0000
commitaaa5b47877028053116bb50c18cd79029a478400 (patch)
treefbd989ec6c54483ba25965d57a0687239a168186 /framework/Web/UI/TClientScriptManager.php
parent54598910eaa729dd2b9a936efc03b1c5b85b4954 (diff)
Fixed a few more issues to the introduction of TApplicationComponent.
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);
}