mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +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.
|
// Separate the plugin name from the key.
|
||||||
if (preg_match('/^[a-z0-9_.-]+$/i', $key) && ($keys = explode('.', $key, 2)) && count($keys) === 2)
|
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]))
|
if (!isset($this->_loaded_plugins[$plugin_name]))
|
||||||
{
|
{
|
||||||
$this->loadPlugin($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;
|
goto end_other_lang;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue