diff options
Diffstat (limited to 'framework/I18N/TGlobalization.php')
-rw-r--r-- | framework/I18N/TGlobalization.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/I18N/TGlobalization.php b/framework/I18N/TGlobalization.php index 317273ac..769b7eaa 100644 --- a/framework/I18N/TGlobalization.php +++ b/framework/I18N/TGlobalization.php @@ -68,8 +68,9 @@ class TGlobalization extends TModule $this->_defaultCharset = $this->getCharset();
$this->_defaultCulture = $this->getCulture();
- $config = $xml->getElementByTagName('translation')->getAttributes();
- $this->setTranslationConfiguration($config);
+ $translation = $xml->getElementByTagName('translation');
+ if($translation)
+ $this->setTranslationConfiguration($translation->getAttributes());
$this->getApplication()->setGlobalization($this);
}
|