summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-12-02 12:40:42 +0000
committerctrlaltca@gmail.com <>2011-12-02 12:40:42 +0000
commit8624b576e7e21170baf182146c0762888223f146 (patch)
treec844db8044bdf961c987df7caa0761aa01151829 /framework
parenta8dd11ab39ac1256311fc93660091b527132b467 (diff)
TApplication: don't forget to initialize TGlobalization with its default values when it gets created (fixes #375)
Diffstat (limited to 'framework')
-rw-r--r--framework/TApplication.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index 703dae17..acfb8d2a 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -938,7 +938,10 @@ class TApplication extends TComponent
public function getGlobalization($createIfNotExists=true)
{
if($this->_globalization===null && $createIfNotExists)
+ {
$this->_globalization=new TGlobalization;
+ $this->_globalization->init(null);
+ }
return $this->_globalization;
}