1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Tidy up a few antifeature-related things in web repo browser

This commit is contained in:
Ciaran Gultnieks 2013-11-27 10:49:44 +00:00
parent 3568a51ac0
commit 2ce0b14d92

View File

@ -490,22 +490,21 @@ class FDroid
private function get_antifeature_description($antifeature) {
// Anti feature names and descriptions
$antifeatureDescription['ads']['name'] = 'Advertising';
$antifeatureDescription['ads']['description'] = 'This application contains advertising';
$antifeatureDescription['tracking']['name'] = 'Tracks You';
$antifeatureDescription['tracking']['description'] = 'This application tracks and reports your activity to somewhere';
$antifeatureDescription['nonfreenet']['name'] = 'Non-Free Network Services';
$antifeatureDescription['nonfreenet']['description'] = 'This application promotes a non-Free network service';
$antifeatureDescription['nonfreeadd']['name'] = 'Non-Free Addons';
$antifeatureDescription['nonfreeadd']['description'] = 'This application promotes non-Free add-ons';
$antifeatureDescription['nonfreedep']['name'] = 'Non-Free Dependencies';
$antifeatureDescription['nonfreedep']['description'] = 'This application depends on another non-Free application';
$antifeatureDescription['upstreamnonfree']['name'] = 'Upstream Non-Free';
$antifeatureDescription['nonfreedep']['description'] = 'The upstream source code is non-free';
$antifeatureDescription['Ads']['name'] = 'Advertising';
$antifeatureDescription['Ads']['description'] = 'This application contains advertising.';
$antifeatureDescription['Tracking']['name'] = 'Tracks You';
$antifeatureDescription['Tracking']['description'] = 'This application tracks and reports your activity to somewhere.';
$antifeatureDescription['NonFreeNet']['name'] = 'Non-Free Network Services';
$antifeatureDescription['NonFreeNet']['description'] = 'This application promotes a non-Free network service.';
$antifeatureDescription['NonFreeAdd']['name'] = 'Non-Free Addons';
$antifeatureDescription['NonFreeAdd']['description'] = 'This application promotes non-Free add-ons.';
$antifeatureDescription['NonFreeDep']['name'] = 'Non-Free Dependencies';
$antifeatureDescription['NonFreeDep']['description'] = 'This application depends on another non-Free application.';
$antifeatureDescription['UpstreamNonFree']['name'] = 'Upstream Non-Free';
$antifeatureDescription['UpstreamNonFree']['description'] = 'The upstream source code is non-free.';
$antifeatureLower = strtolower($antifeature);
if(isset($antifeatureDescription[$antifeatureLower])) {
return $antifeatureDescription[$antifeatureLower];
if(isset($antifeatureDescription[$antifeature])) {
return $antifeatureDescription[$antifeature];
}
return array('name'=>$antifeature);
}