Merge pull request #21493 from owncloud/fix-repair-path
Move lib/repair to lib/private/repair
This commit is contained in:
commit
30e1a33910
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue