Made AutoLoader work only for szurubooru namespace

This commit is contained in:
Marcin Kurczewski 2014-09-01 21:25:13 +02:00
parent 57fd080e52
commit ffdbf843ac

View file

@ -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)