diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-18 11:18:36 +0300 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-18 11:18:36 +0300 |
commit | 1c2675568667aeccf9855e70970bb1b09ccab13e (patch) | |
tree | 0140ed6efc82316c4f955f6b0b7b7e44893babe3 /lib/private/app.php | |
parent | 03965053c34bc0fe673ea0da82ac83ff68ce3fa3 (diff) |
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 6c6f79dfa9d..9de1c66ee55 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 |