Skip to content
Snippets Groups Projects
Commit 30e1a339 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

Move lib/repair to lib/private/repair
parents 29416b07 60489794
No related branches found
No related tags found
No related merge requests found
Showing
with 1 addition and 4 deletions
...@@ -112,9 +112,6 @@ class Autoloader { ...@@ -112,9 +112,6 @@ class Autoloader {
$paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php'; $paths[] = \OC::$SERVERROOT . '/core/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} else if ($split[1] === 'settings') { } else if ($split[1] === 'settings') {
$paths[] = \OC::$SERVERROOT . '/settings/' . strtolower(str_replace('\\', '/', $split[2])) . '.php'; $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 { } else {
$paths[] = \OC::$SERVERROOT . '/lib/private/' . $split[1] . '/' . strtolower(str_replace('\\', '/', $split[2])) . '.php'; $paths[] = \OC::$SERVERROOT . '/lib/private/' . $split[1] . '/' . strtolower(str_replace('\\', '/', $split[2])) . '.php';
} }
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
...@@ -90,7 +90,7 @@ class AutoLoader extends TestCase { ...@@ -90,7 +90,7 @@ class AutoLoader extends TestCase {
public function testLoadCoreNamespaceRepair() { public function testLoadCoreNamespaceRepair() {
$this->assertEquals([ $this->assertEquals([
\OC::$SERVERROOT . '/lib/repair/foo/bar.php', \OC::$SERVERROOT . '/lib/private/repair/foo/bar.php',
], $this->loader->findClass('OC\Repair\Foo\Bar')); ], $this->loader->findClass('OC\Repair\Foo\Bar'));
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment