summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlgmathisen <>2008-12-01 13:37:30 +0000
committercarlgmathisen <>2008-12-01 13:37:30 +0000
commit84558ef6688c0f45a2e7af5096764bbe02bc03d9 (patch)
treeb61382471031b13ab4b3a9450ba1d00a84e67569
parent3ed4783b00a6bc16f25150f463bb437bddcfeebb (diff)
Issue 75 - TApplication::setRuntimePath() to update uniqueID and cacheFile
-rw-r--r--HISTORY1
-rw-r--r--framework/TApplication.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index abfd195f..4f62790b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9,6 +9,7 @@ ENH: Issue#52 - Upgraded to TinyMCE 3.2.1
ENH: Issue#72 - Add wildcard support to TUrlMapping (friendly-urls) (Michael)
ENH: Issue#77 - TJsonService missing exception messages (Carl)
ENH: Issue#29 - Ability to specify position of popup TDatePicker/TActiveDatePicker (Carl)
+ENH: Issue#75 - TApplication::setRuntimePath() to update uniqueID and cacheFile (Carl)
NEW: Issue#51 - Additional template tag (Carl)
Version 3.1.3 November 1, 2008
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 03ca3f05..e21bd4e7 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -577,6 +577,10 @@ class TApplication extends TComponent
public function setRuntimePath($value)
{
$this->_runtimePath=$value;
+ if($cacheConfig)
+ $this->_cacheFile=$this->_runtimePath.DIRECTORY_SEPARATOR.self::CONFIGCACHE_FILE;
+ // generates unique ID by hashing the runtime path
+ $this->_uniqueID=md5($this->_runtimePath);
}
/**