mirror of
https://github.com/openvk/chandler.git
synced 2025-02-02 04:25:25 +03:00
Prevent chandler from raising Fatal errors if class doesn't exist
This commit is contained in:
parent
be4e0b9e71
commit
4adcf433c5
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class ExtensionManager
|
|||
spl_autoload_register(@create_function("\$class", "
|
||||
if(!substr(\$class, 0, " . iconv_strlen("$name\\") . ") === \"$name\\\\\") return false;
|
||||
|
||||
require_once CHANDLER_ROOT . \"/extensions/enabled/\" . str_replace(\"\\\\\", \"/\", \$class) . \".php\";
|
||||
include_once CHANDLER_ROOT . \"/extensions/enabled/\" . str_replace(\"\\\\\", \"/\", \$class) . \".php\";
|
||||
"));
|
||||
|
||||
define(mb_strtoupper($name) . "_ROOT", CHANDLER_ROOT . "/extensions/enabled/$name", false);
|
||||
|
|
Loading…
Reference in a new issue