From ca168f68760bfeb868ac80b63e7370f0891aa140 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 12 Mar 2006 04:56:18 +0000 Subject: Added automatically loading of TGlobalization. --- framework/I18N/TGlobalization.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'framework/I18N/TGlobalization.php') 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); } -- cgit v1.2.3