summaryrefslogtreecommitdiff
path: root/framework/I18N/TGlobalization.php
diff options
context:
space:
mode:
authorwei <>2006-02-19 22:25:23 +0000
committerwei <>2006-02-19 22:25:23 +0000
commit54572d1e4a5914e44bcd35fa9406ea72a8f2066f (patch)
tree3a8fc184f27cf06a3c1a768160579c6f26b3d599 /framework/I18N/TGlobalization.php
parentad8fced1af4eb8e6d57f8610273490aec0ac8cba (diff)
Update TRatingList and date picker.
Diffstat (limited to 'framework/I18N/TGlobalization.php')
-rw-r--r--framework/I18N/TGlobalization.php5
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);
}