mirror of
https://github.com/openvk/chandler.git
synced 2024-11-14 19:19:11 +03:00
Fix loading of extensions that have hyphen in their name
This commit is contained in:
parent
f76d988e54
commit
97573bb465
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ class ExtensionManager
|
|||
include_once CHANDLER_ROOT . \"/extensions/enabled/\" . str_replace(\"\\\\\", \"/\", \$class) . \".php\";
|
||||
"));
|
||||
|
||||
define(mb_strtoupper($name) . "_ROOT", CHANDLER_ROOT . "/extensions/enabled/$name", false);
|
||||
define(mb_strtoupper($name) . "_ROOT_CONF", chandler_parse_yaml(CHANDLER_ROOT . "/extensions/enabled/$name/$name.yml"), false);
|
||||
define(str_replace("-", "_", mb_strtoupper($name)) . "_ROOT", CHANDLER_ROOT . "/extensions/enabled/$name", false);
|
||||
define(str_replace("-", "_", mb_strtoupper($name)) . "_ROOT_CONF", chandler_parse_yaml(CHANDLER_ROOT . "/extensions/enabled/$name/$name.yml"), false);
|
||||
|
||||
if(isset($configuration->init))
|
||||
(require(CHANDLER_ROOT . "/extensions/enabled/$name/" . $configuration->init))();
|
||||
|
|
Loading…
Reference in a new issue