diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:31:17 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-23 23:31:17 +0200 |
commit | f884e762bcf3e1737f1cdd5a4453ca0664087b61 (patch) | |
tree | b0f2ac05efef64c98aac9b21588cc32812cc7acc /lib/public/App.php | |
parent | db1096bcfdf2336ccf6aefb70dd902a63ed615db (diff) | |
download | nextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.tar.gz nextcloud-server-f884e762bcf3e1737f1cdd5a4453ca0664087b61.zip |
Use appmanager instead of OC_App for check for enabled app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/App.php')
-rw-r--r-- | lib/public/App.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/App.php b/lib/public/App.php index 06dde22b8d1..250d33bf01f 100644 --- a/lib/public/App.php +++ b/lib/public/App.php @@ -127,9 +127,10 @@ class App { * * This function checks whether or not an app is enabled. * @since 4.0.0 + * @deprecated 13.0.0 use \OC::$server->getAppManager()->isEnabledForUser($appId) */ public static function isEnabled( $app ) { - return \OC_App::isEnabled( $app ); + return \OC::$server->getAppManager()->isEnabledForUser( $app ); } /** |