diff options
author | xue <> | 2006-03-12 04:56:18 +0000 |
---|---|---|
committer | xue <> | 2006-03-12 04:56:18 +0000 |
commit | ca168f68760bfeb868ac80b63e7370f0891aa140 (patch) | |
tree | 9f9c47046c97a01f72b61db612d043f93e7e3696 /framework/I18N/TGlobalization.php | |
parent | cb7b7f1929dce12936eca957caa432e74c6dc7de (diff) |
Added automatically loading of TGlobalization.
Diffstat (limited to 'framework/I18N/TGlobalization.php')
-rw-r--r-- | framework/I18N/TGlobalization.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php index 769b7eaa..0e664378 100644 --- a/framework/I18N/TGlobalization.php +++ b/framework/I18N/TGlobalization.php @@ -68,9 +68,12 @@ class TGlobalization extends TModule $this->_defaultCharset = $this->getCharset();
$this->_defaultCulture = $this->getCulture();
- $translation = $xml->getElementByTagName('translation');
- if($translation)
- $this->setTranslationConfiguration($translation->getAttributes());
+ if($xml!==null)
+ {
+ $translation = $xml->getElementByTagName('translation');
+ if($translation)
+ $this->setTranslationConfiguration($translation->getAttributes());
+ }
$this->getApplication()->setGlobalization($this);
}
|