diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-08-06 16:08:02 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-08-06 16:09:34 +0100 |
commit | 50ebea41f60f2864a565ea9985c5462c2df5f09e (patch) | |
tree | d666dfe6bc8c56aedb2d8e289ceea0d790123205 /lib/private/app.php | |
parent | 6c139674a4dc6b9984bb303d7006854a6c9c6f3b (diff) | |
download | nextcloud-server-50ebea41f60f2864a565ea9985c5462c2df5f09e.tar.gz nextcloud-server-50ebea41f60f2864a565ea9985c5462c2df5f09e.zip |
Only load app routes if the app has already been loaded
Diffstat (limited to 'lib/private/app.php')
-rw-r--r-- | lib/private/app.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 74b21b2b107..e51fe73cb19 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -74,6 +74,16 @@ class OC_App { } /** + * Check if an app is loaded + * + * @param string $app + * @return bool + */ + public static function isAppLoaded($app) { + return in_array($app, self::$loadedApps, true); + } + + /** * loads all apps * * @param array $types |