diff options
author | xue <> | 2006-04-16 14:43:51 +0000 |
---|---|---|
committer | xue <> | 2006-04-16 14:43:51 +0000 |
commit | 2983057ad91ccdef1fef86a85fe8e888350c3384 (patch) | |
tree | 6eb89e44b6d141d69779f8b2a26d18aeec641ee0 /framework/TApplication.php | |
parent | eeb97a9e51e87a359c2c069fc64b04b80d9ebe95 (diff) |
Fixed a few issues with using Globalization.
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r-- | framework/TApplication.php | 5 |
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; } |