mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
Simplify FTP configuration using new format
This commit is contained in:
parent
673cd48db0
commit
a36bc03970
9 changed files with 155 additions and 201 deletions
|
|
@ -284,7 +284,7 @@ class Lang
|
|||
public function __get($key)
|
||||
{
|
||||
// Separate the plugin name from the key.
|
||||
if (($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;
|
||||
if (!isset($this->_loaded_plugins[$plugin_name]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue