|
@@ 125-127 (lines=3) @@
|
| 122 |
|
} else { |
| 123 |
|
$paths[] = \OC::$SERVERROOT . '/lib/private/' . strtolower(str_replace('\\', '/', $split[1])) . '.php'; |
| 124 |
|
} |
| 125 |
|
} elseif (strpos($class, 'OCP\\') === 0) { |
| 126 |
|
$paths[] = \OC::$SERVERROOT . '/lib/public/' . strtolower(str_replace('\\', '/', substr($class, 4)) . '.php'); |
| 127 |
|
} elseif (strpos($class, 'OCA\\') === 0) { |
| 128 |
|
list(, $app, $rest) = explode('\\', $class, 3); |
| 129 |
|
$app = strtolower($app); |
| 130 |
|
$appPath = \OC_App::getAppPath($app); |
|
@@ 136-138 (lines=3) @@
|
| 133 |
|
// If not found in the root of the app directory, insert '/lib' after app id and try again. |
| 134 |
|
$paths[] = $appPath . '/lib/' . strtolower(str_replace('\\', '/', $rest) . '.php'); |
| 135 |
|
} |
| 136 |
|
} elseif (strpos($class, 'Test_') === 0) { |
| 137 |
|
$paths[] = \OC::$SERVERROOT . '/tests/lib/' . strtolower(str_replace('_', '/', substr($class, 5)) . '.php'); |
| 138 |
|
} elseif (strpos($class, 'Test\\') === 0) { |
| 139 |
|
$paths[] = \OC::$SERVERROOT . '/tests/lib/' . strtolower(str_replace('\\', '/', substr($class, 5)) . '.php'); |
| 140 |
|
} |
| 141 |
|
return $paths; |