Browse Source
Only allow loading of legacy (lib/private/legacy) by default
remotes/origin/throw-loginexception-failed-login
Roeland Jago Douma
10 years ago
committed by
Vincent Petry
No known key found for this signature in database
GPG Key ID: AF8F9EFC56562186
1 changed files with
1 additions and
5 deletions
-
lib/base.php
|
|
|
@ -481,11 +481,7 @@ class OC { |
|
|
|
$loaderStart = microtime(true); |
|
|
|
require_once __DIR__ . '/autoloader.php'; |
|
|
|
self::$loader = new \OC\Autoloader([ |
|
|
|
OC::$SERVERROOT . '/lib', |
|
|
|
OC::$SERVERROOT . '/core', |
|
|
|
OC::$SERVERROOT . '/settings', |
|
|
|
OC::$SERVERROOT . '/ocs', |
|
|
|
OC::$SERVERROOT . '/ocs-provider', |
|
|
|
OC::$SERVERROOT . '/lib/private/legacy', |
|
|
|
]); |
|
|
|
if (defined('PHPUNIT_RUN')) { |
|
|
|
self::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); |
|
|
|
|