Merge pull request #21493 from owncloud/fix-repair-path

Move lib/repair to lib/private/repair
This commit is contained in:
Thomas Müller 2016-01-07 14:18:51 +01:00
commit 30e1a33910
19 changed files with 1 additions and 4 deletions

View File

@ -112,9 +112,6 @@ class Autoloader {
$paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} else if ($split[1] === 'settings') {
$paths[] = \OC::$SERVERROOT . '/settings/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} else if ($split[1] === 'repair') {
$paths[] = \OC::$SERVERROOT . '/lib/repair/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} else {
$paths[] = \OC::$SERVERROOT . '/lib/private/' . $split[1] . '/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
}

View File

@ -90,7 +90,7 @@ class AutoLoader extends TestCase {
public function testLoadCoreNamespaceRepair() {
$this->assertEquals([
\OC::$SERVERROOT . '/lib/repair/foo/bar.php',
\OC::$SERVERROOT . '/lib/private/repair/foo/bar.php',
], $this->loader->findClass('OC\Repair\Foo\Bar'));
}
}