summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-04-16 14:43:51 +0000
committerxue <>2006-04-16 14:43:51 +0000
commit2983057ad91ccdef1fef86a85fe8e888350c3384 (patch)
tree6eb89e44b6d141d69779f8b2a26d18aeec641ee0 /framework/TApplication.php
parenteeb97a9e51e87a359c2c069fc64b04b80d9ebe95 (diff)
Fixed a few issues with using Globalization.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index fcc77b16..aa46f39d 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -754,10 +754,13 @@ class TApplication extends TComponent
}
/**
+ * @param boolean whether to create globalization if it does not exist
* @return TGlobalization globalization module
*/
- public function getGlobalization()
+ public function getGlobalization($createIfNotExists=true)
{
+ if($this->_globalization===null && $createIfNotExists)
+ $this->_globalization=new TGlobalization;
return $this->_globalization;
}