From ffdbf843acf8ac32df52467287b3af1d7cf78626 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Mon, 1 Sep 2014 21:25:13 +0200 Subject: [PATCH] Made AutoLoader work only for szurubooru namespace --- src/AutoLoader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AutoLoader.php b/src/AutoLoader.php index 0e2cfbfc..565f35c4 100644 --- a/src/AutoLoader.php +++ b/src/AutoLoader.php @@ -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)