diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 15:38:16 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-19 15:38:16 +0200 |
commit | ffa463382231cac2446b0a39520b53068e4581b9 (patch) | |
tree | 951a02d6b0475c18d75faa3801b370f1e1ec524a /lib/autoloader.php | |
parent | 3b3940df6b020267fc51f0f365e3a8ceb7ddc2cc (diff) | |
download | nextcloud-server-ffa463382231cac2446b0a39520b53068e4581b9.tar.gz nextcloud-server-ffa463382231cac2446b0a39520b53068e4581b9.zip |
No more Test_* files exist, remove autoloading
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r-- | lib/autoloader.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/autoloader.php b/lib/autoloader.php index 9cc573c0997..ff9db924cdd 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -94,7 +94,7 @@ class Autoloader { $paths[] = \OC::$CLASSPATH[$class]; /** * @TODO: Remove this when necessary - * Remove "apps/" from inclusion path for smooth migration to mutli app dir + * Remove "apps/" from inclusion path for smooth migration to multi app dir */ if (strpos(\OC::$CLASSPATH[$class], 'apps/') === 0) { \OCP\Util::writeLog('core', 'include path for class "' . $class . '" starts with "apps/"', \OCP\Util::DEBUG); @@ -113,8 +113,6 @@ class Autoloader { // If not found in the root of the app directory, insert '/lib' after app id and try again. $paths[] = $appPath . '/lib/' . strtolower(str_replace('\\', '/', $rest) . '.php'); } - } elseif (strpos($class, 'Test_') === 0) { - $paths[] = \OC::$SERVERROOT . '/tests/lib/' . strtolower(str_replace('_', '/', substr($class, 5)) . '.php'); } elseif (strpos($class, 'Test\\') === 0) { $paths[] = \OC::$SERVERROOT . '/tests/lib/' . strtolower(str_replace('\\', '/', substr($class, 5)) . '.php'); } |