From fdbe0c97340f9ebc92c083d0aade3f431d46cce0 Mon Sep 17 00:00:00 2001
From: Frank Karlitschek <frank@owncloud.org>
Date: Fri, 18 May 2012 21:14:07 +0200
Subject: [PATCH] =?UTF-8?q?don=C2=B4t=20claim=20that=20already=20downloade?=
 =?UTF-8?q?d=203rd=20party=20apps=20are=20internal=20apps?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 settings/apps.php | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/settings/apps.php b/settings/apps.php
index eef01641f3..028f00c249 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;
 	}
-- 
GitLab