diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-07-29 15:29:26 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-07-29 15:29:26 +0000 |
commit | 038af7e636ad8a2dc9ac342eaecd176cc5c35256 (patch) | |
tree | 9e6c2b93494ef41c04242532e7eba7ef2c788629 /lib/app.php | |
parent | 9dbe5f3703afd84c701d0d1347c06f1b07ff7fe6 (diff) | |
download | nextcloud-server-038af7e636ad8a2dc9ac342eaecd176cc5c35256.tar.gz nextcloud-server-038af7e636ad8a2dc9ac342eaecd176cc5c35256.zip |
Add method to check if an app is shipped or not
Diffstat (limited to 'lib/app.php')
-rw-r--r--[-rwxr-xr-x] | lib/app.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php index 56132c08671..60bd0ef476b 100755..100644 --- a/lib/app.php +++ b/lib/app.php @@ -139,6 +139,20 @@ class OC_App{ OC_Appconfig::setValue($app,'types',$appTypes); } + + /** + * check if app is shipped + * @param string $appid the id of the app to check + * @return bool + */ + public function isShipped($appid){ + $info = self::getAppInfo($appid); + if(isset($info['shipped']) && $info['shipped']=='true'){ + return true; + } else { + return false; + } + } /** * get all enabled apps |