mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
변수 충돌 부분 수정
This commit is contained in:
parent
b9a8b15fe9
commit
6a351265ff
1 changed files with 3 additions and 3 deletions
|
|
@ -219,14 +219,14 @@ class Lang
|
|||
// Separate the plugin name from the key.
|
||||
if (preg_match('/^[a-z0-9_.-]+$/i', $key) && ($keys = explode('.', $key, 2)) && count($keys) === 2)
|
||||
{
|
||||
list($plugin_name, $key) = $keys;
|
||||
list($plugin_name, $lang_key) = $keys;
|
||||
if (!isset($this->_loaded_plugins[$plugin_name]))
|
||||
{
|
||||
$this->loadPlugin($plugin_name);
|
||||
}
|
||||
if (isset($this->_loaded_plugins[$plugin_name]->{$key}))
|
||||
if (isset($this->_loaded_plugins[$plugin_name]->{$lang_key}))
|
||||
{
|
||||
return $this->_loaded_plugins[$plugin_name]->{$key};
|
||||
return $this->_loaded_plugins[$plugin_name]->{$lang_key};
|
||||
}
|
||||
|
||||
goto end_other_lang;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue