summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-05 12:24:21 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-05 12:24:21 -0500
commit035d0aa9d5b2768672af89ddd543913ec1f6b657 (patch)
tree32901cc0472166121c1f1a99c78c41dbb4a7d232 /lib/app.php
parent5ea8adc7c7a3659fb95e9111078acf995cea39fb (diff)
parent0c6213a371059952bc2393563ad93ca74fbdddfc (diff)
downloadnextcloud-server-035d0aa9d5b2768672af89ddd543913ec1f6b657.tar.gz
nextcloud-server-035d0aa9d5b2768672af89ddd543913ec1f6b657.zip
Merge branch 'master' into update-progress
Diffstat (limited to 'lib/app.php')
-rw-r--r--[-rwxr-xr-x]lib/app.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/app.php b/lib/app.php
index 9d4ead71b90..e60bce2a201 100755..100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -137,6 +137,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 static function isShipped($appid){
+ $info = self::getAppInfo($appid);
+ if(isset($info['shipped']) && $info['shipped']=='true'){
+ return true;
+ } else {
+ return false;
+ }
+ }
/**
* get all enabled apps