#18848369 global $lang 변수 타입 보호

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7374 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-04-20 01:51:03 +00:00
parent b7f8e34a2e
commit de50230410

View file

@ -509,6 +509,7 @@
**/
function _loadLang($path) {
global $lang;
if(!is_object($lang)) $lang = new stdClass;
if(!$this->lang_type) return;
if(substr($path,-1)!='/') $path .= '/';
$filename = sprintf('%s%s.lang.php', $path, $this->lang_type);