Made AutoLoader work only for szurubooru namespace
This commit is contained in:
parent
57fd080e52
commit
ffdbf843ac
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ final class AutoLoader
|
|||
|
||||
public static function _include($className)
|
||||
{
|
||||
if (strpos($className, 'Szurubooru') === false)
|
||||
return;
|
||||
$className = str_replace('\\', DIRECTORY_SEPARATOR, $className);
|
||||
$className = str_replace('Szurubooru', '', $className);
|
||||
if (strpos($className, 'Tests') !== false)
|
||||
|
|
Loading…
Reference in a new issue