From af832a5a9018c7dcc2f24111d82049902269fc53 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 18 Oct 2006 01:38:47 +0000 Subject: merge from 3.0 branch till 1463. --- framework/Collections/TList.php | 2 +- framework/PradoBase.php | 5 +++++ framework/Web/Services/TPageService.php | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index f22d6e7b..e646e203 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -134,7 +134,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl public function add($item) { $this->insertAt($this->_c,$item); - return $this->_c; + return $this->_c-1; } /** diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 93bdd084..4cfedb09 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -340,6 +340,11 @@ class PradoBase return isset(self::$_aliases[$alias])?self::$_aliases[$alias]:null; } + protected static function getPathAliases() + { + return self::$_aliases; + } + /** * @param string alias to the path * @param string the path corresponding to the alias diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 087cb12a..ac4787f2 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -240,7 +240,7 @@ class TPageService extends TService { $configCached=true; $currentTimestamp=array(); - $arr=$cache->get(self::CONFIG_CACHE_PREFIX.$pagePath); + $arr=$cache->get(self::CONFIG_CACHE_PREFIX.$this->getID().$pagePath); if(is_array($arr)) { list($pageConfig,$timestamps)=$arr; @@ -284,7 +284,7 @@ class TPageService extends TService if($config!==null) $pageConfig->loadXmlElement($config,$application->getBasePath(),null); $pageConfig->loadConfigurationFiles($pagePath,$this->getBasePath()); - $cache->set(self::CONFIG_CACHE_PREFIX.$pagePath,array($pageConfig,$currentTimestamp)); + $cache->set(self::CONFIG_CACHE_PREFIX.$this->getID().$pagePath,array($pageConfig,$currentTimestamp)); } } return $pageConfig; -- cgit v1.2.3