Skip to content
Snippets Groups Projects
Commit 038af7e6 authored by Tom Needham's avatar Tom Needham
Browse files

Add method to check if an app is shipped or not

parent 9dbe5f37
No related branches found
No related tags found
No related merge requests found
lib/app.php 100755 → 100644
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment