From edfdfdd1cbf6d597551d4128e7e11d6d92bcdf95 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 6 Aug 2007 18:58:55 +0000 Subject: fixed #685 --- framework/Web/Services/TPageService.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'framework/Web/Services') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index ab672558..ab8d3651 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -249,9 +249,9 @@ class TPageService extends TService $configPath=$this->getBasePath(); foreach($paths as $path) { - $configFile=$configPath.'/'.self::CONFIG_FILE; + $configFile=$configPath.DIRECTORY_SEPARATOR.self::CONFIG_FILE; $currentTimestamp[$configFile]=@filemtime($configFile); - $configPath.='/'.$path; + $configPath.=DIRECTORY_SEPARATOR.$path; } $appConfigFile=$application->getConfigurationFile(); $currentTimestamp[0]=$appConfigFile===null?0:@filemtime($appConfigFile); @@ -367,7 +367,7 @@ class TPageService extends TService { if($this->_basePath===null) { - $basePath=$this->getApplication()->getBasePath().'/'.self::DEFAULT_BASEPATH; + $basePath=$this->getApplication()->getBasePath().DIRECTORY_SEPARATOR.self::DEFAULT_BASEPATH; if(($this->_basePath=realpath($basePath))===false || !is_dir($this->_basePath)) throw new TConfigurationException('pageservice_basepath_invalid',$basePath); } @@ -427,7 +427,7 @@ class TPageService extends TService */ protected function createPage($pagePath) { - $path=$this->getBasePath().DIRECTORY_SEPARATOR.strtr($pagePath,'.','/'); + $path=$this->getBasePath().DIRECTORY_SEPARATOR.strtr($pagePath,'.',DIRECTORY_SEPARATOR); $hasTemplateFile=is_file($path.self::PAGE_FILE_EXT); $hasClassFile=is_file($path.Prado::CLASS_FILE_EXT); @@ -568,10 +568,10 @@ class TPageConfiguration extends TComponent $path=$basePath; foreach($paths as $p) { - $this->loadFromFile($path.'/'.TPageService::CONFIG_FILE,null); - $path.='/'.$p; + $this->loadFromFile($path.DIRECTORY_SEPARATOR.TPageService::CONFIG_FILE,null); + $path.=DIRECTORY_SEPARATOR.$p; } - $this->loadFromFile($path.'/'.TPageService::CONFIG_FILE,$page); + $this->loadFromFile($path.DIRECTORY_SEPARATOR.TPageService::CONFIG_FILE,$page); $this->_rules=new TAuthorizationRuleCollection($this->_rules); } -- cgit v1.2.3