mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Use associative array to store custom namespaces
This commit is contained in:
parent
911772393a
commit
a7954506f6
5 changed files with 22 additions and 22 deletions
|
|
@ -42,16 +42,11 @@ class Config
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty(self::$_config['namespaces']))
|
||||
if (isset(self::$_config['namespaces']) && !empty(self::$_config['namespaces']['regexp']))
|
||||
{
|
||||
$GLOBALS['RX_NAMESPACES'] = self::$_config['namespaces'];
|
||||
}
|
||||
|
||||
if (!empty(self::$_config['prefixes']))
|
||||
{
|
||||
$GLOBALS['RX_PREFIXES'] = self::$_config['prefixes'];
|
||||
}
|
||||
|
||||
return self::$_config;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue