#99 menu, layout, module cache 파일의 PHP 호환성 개선 (PHP 5.4 or later)

This commit is contained in:
bnu 2013-11-24 18:42:28 +09:00
parent 4a7c889981
commit 7b09dc8339
4 changed files with 56 additions and 15 deletions

View file

@ -840,6 +840,7 @@ class Context
{
global $lang;
if(!$path) return;
$_path = 'eval://' . $path;
if(in_array($_path, $this->loaded_lang_files))
@ -870,6 +871,7 @@ class Context
*/
function _loadXmlLang($path)
{
if(!$path) return;
$oXmlLangParser = new XmlLangParser($path . ((substr_compare($path, '/', -1) !== 0) ? '/' : '') . 'lang.xml', $this->lang_type);
return $oXmlLangParser->compile();
}
@ -882,6 +884,7 @@ class Context
*/
function _loadPhpLang($path)
{
if(!$path) return;
if(substr_compare($path, '/', -1) !== 0)
{
$path .= '/';