Merge pull request #23976 from nextcloud/enh/reduce_getAppPath_and_autoload_reg
Reduce the getAppPath and autoloader calls
This commit is contained in:
commit
f02bab1425
|
@ -118,11 +118,14 @@ class OC_App {
|
|||
|
||||
// Add each apps' folder as allowed class path
|
||||
foreach ($apps as $app) {
|
||||
// If the app is already loaded then autoloading it makes no sense
|
||||
if (!isset(self::$loadedApps[$app])) {
|
||||
$path = self::getAppPath($app);
|
||||
if ($path !== false) {
|
||||
self::registerAutoloading($app, $path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// prevent app.php from printing output
|
||||
ob_start();
|
||||
|
|
Loading…
Reference in New Issue