From 54598910eaa729dd2b9a936efc03b1c5b85b4954 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 18:45:49 +0000 Subject: Changed a few application API names. --- framework/Web/UI/TTemplateManager.php | 2 +- framework/Web/UI/TThemeManager.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index 67bda1b2..404be231 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -144,7 +144,7 @@ class TTemplateManager extends TModule * @package System.Web.UI * @since 3.0 */ -class TTemplate extends TComponent implements ITemplate +class TTemplate extends TApplicationComponent implements ITemplate { /** * '' - template comments diff --git a/framework/Web/UI/TThemeManager.php b/framework/Web/UI/TThemeManager.php index 37e477d9..00b3f60f 100644 --- a/framework/Web/UI/TThemeManager.php +++ b/framework/Web/UI/TThemeManager.php @@ -86,7 +86,7 @@ class TThemeManager extends TModule { if($this->_basePath===null) { - $this->_basePath=dirname($this->getRequest()->getPhysicalApplicationPath()).'/'.self::DEFAULT_BASEPATH; + $this->_basePath=dirname($this->getRequest()->getApplicationFilePath()).'/'.self::DEFAULT_BASEPATH; if(($basePath=realpath($this->_basePath))===false || !is_dir($basePath)) throw new TConfigurationException('thememanager_basepath_invalid',$this->_basePath); $this->_basePath=$basePath; @@ -119,11 +119,11 @@ class TThemeManager extends TModule { if($this->_baseUrl===null) { - $appPath=dirname($this->getRequest()->getPhysicalApplicationPath()); + $appPath=dirname($this->getRequest()->getApplicationFilePath()); $basePath=$this->getBasePath(); if(strpos($basePath,$appPath)===false) throw new TConfigurationException('thememanager_baseurl_required'); - $appUrl=rtrim(dirname($this->getRequest()->getApplicationPath()),'/\\'); + $appUrl=rtrim(dirname($this->getRequest()->getApplicationUrl()),'/\\'); $this->_baseUrl=$appUrl.strtr(substr($basePath,strlen($appPath)),'\\','/'); } return $this->_baseUrl; @@ -164,7 +164,7 @@ class TThemeManager extends TModule * @package System.Web.UI * @since 3.0 */ -class TTheme extends TComponent implements ITheme +class TTheme extends TApplicationComponent implements ITheme { /** * prefix for cache variable name used to store parsed themes -- cgit v1.2.3