mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #36590 from nextcloud/enh/load-app-once
Make sure application are only loaded once
This commit is contained in:
commit
06f0da6d46
1 changed files with 4 additions and 1 deletions
|
|
@ -158,7 +158,10 @@ class OC_App {
|
|||
* @param string $app
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function loadApp(string $app) {
|
||||
public static function loadApp(string $app): void {
|
||||
if (isset(self::$loadedApps[$app])) {
|
||||
return;
|
||||
}
|
||||
self::$loadedApps[$app] = true;
|
||||
$appPath = self::getAppPath($app);
|
||||
if ($appPath === false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue