mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#99 menu, layout, module cache 파일의 PHP 호환성 개선 (PHP 5.4 or later)
This commit is contained in:
parent
4a7c889981
commit
7b09dc8339
4 changed files with 56 additions and 15 deletions
|
|
@ -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 .= '/';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue