From 54572d1e4a5914e44bcd35fa9406ea72a8f2066f Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 19 Feb 2006 22:25:23 +0000 Subject: Update TRatingList and date picker. --- framework/I18N/TGlobalization.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/I18N') 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); } -- cgit v1.2.3