Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-19 16:38:16 +0300
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-19 16:38:16 +0300
commitffa463382231cac2446b0a39520b53068e4581b9 (patch)
tree951a02d6b0475c18d75faa3801b370f1e1ec524a /lib/autoloader.php
parent3b3940df6b020267fc51f0f365e3a8ceb7ddc2cc (diff)
No more Test_* files exist, remove autoloading
Diffstat (limited to 'lib/autoloader.php')
-rw-r--r--lib/autoloader.php4
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');
}