diff options
author | xue <> | 2007-08-06 18:58:55 +0000 |
---|---|---|
committer | xue <> | 2007-08-06 18:58:55 +0000 |
commit | edfdfdd1cbf6d597551d4128e7e11d6d92bcdf95 (patch) | |
tree | 9a39721593e768419fb58c8b21e88ff4748bb0ae /framework/Web/Services/TPageService.php | |
parent | 1031b56f982f973f85cb3e1528f7bcbba662778f (diff) |
fixed #685
Diffstat (limited to 'framework/Web/Services/TPageService.php')
-rw-r--r-- | framework/Web/Services/TPageService.php | 14 |
1 files changed, 7 insertions, 7 deletions
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);
}
|