Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-18 23:14:07 +0400
committerFrank Karlitschek <frank@owncloud.org>2012-05-18 23:14:07 +0400
commitfdbe0c97340f9ebc92c083d0aade3f431d46cce0 (patch)
tree517d76d04eb4511f4455f11cb4cbbd3f2c9cdbc6
parent0df376d4721d015947b7e05b71fddd65791fad43 (diff)
donĀ“t claim that already downloaded 3rd party apps are internal apps
-rw-r--r--settings/apps.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/settings/apps.php b/settings/apps.php
index eef01641f32..028f00c2497 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -39,8 +39,13 @@ foreach($registeredApps as $app){
$info=OC_App::getAppInfo($app);
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
$info['active']=$active;
- $info['internal']=true;
- $info['internallabel']='Internal App';
+ if(isset($info['shipped']) and ($info['shipped']=='true')) {
+ $info['internal']=true;
+ $info['internallabel']='Internal App';
+ }else{
+ $info['internal']=false;
+ $info['internallabel']='3rd Party App';
+ }
$info['preview']='trans.png';
$apps[]=$info;
}