diff options
author | ctrlaltca@gmail.com <> | 2011-12-02 12:40:42 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-12-02 12:40:42 +0000 |
commit | 8624b576e7e21170baf182146c0762888223f146 (patch) | |
tree | c844db8044bdf961c987df7caa0761aa01151829 | |
parent | a8dd11ab39ac1256311fc93660091b527132b467 (diff) |
TApplication: don't forget to initialize TGlobalization with its default values when it gets created (fixes #375)
-rw-r--r-- | framework/TApplication.php | 3 |
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; } |