mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Support UpstreamNonFree in web repo browser
This commit is contained in:
parent
92fda57112
commit
cc7fc571d6
@ -490,20 +490,22 @@ class FDroid
|
|||||||
|
|
||||||
private function get_antifeature_description($antifeature) {
|
private function get_antifeature_description($antifeature) {
|
||||||
// Anti feature names and descriptions
|
// Anti feature names and descriptions
|
||||||
$antifeatureDesctiption['ads']['name'] = 'Advertising';
|
$antifeatureDescription['ads']['name'] = 'Advertising';
|
||||||
$antifeatureDesctiption['ads']['description'] = 'This application contains advertising';
|
$antifeatureDescription['ads']['description'] = 'This application contains advertising';
|
||||||
$antifeatureDesctiption['tracking']['name'] = 'Tracks You';
|
$antifeatureDescription['tracking']['name'] = 'Tracks You';
|
||||||
$antifeatureDesctiption['tracking']['description'] = 'This application tracks and reports your activity to somewhere';
|
$antifeatureDescription['tracking']['description'] = 'This application tracks and reports your activity to somewhere';
|
||||||
$antifeatureDesctiption['nonfreenet']['name'] = 'Non-Free Network Services';
|
$antifeatureDescription['nonfreenet']['name'] = 'Non-Free Network Services';
|
||||||
$antifeatureDesctiption['nonfreenet']['description'] = 'This application promotes a non-Free network service';
|
$antifeatureDescription['nonfreenet']['description'] = 'This application promotes a non-Free network service';
|
||||||
$antifeatureDesctiption['nonfreeadd']['name'] = 'Non-Free Addons';
|
$antifeatureDescription['nonfreeadd']['name'] = 'Non-Free Addons';
|
||||||
$antifeatureDesctiption['nonfreeadd']['description'] = 'This application promotes non-Free add-ons';
|
$antifeatureDescription['nonfreeadd']['description'] = 'This application promotes non-Free add-ons';
|
||||||
$antifeatureDesctiption['nonfreedep']['name'] = 'Non-Free Dependencies';
|
$antifeatureDescription['nonfreedep']['name'] = 'Non-Free Dependencies';
|
||||||
$antifeatureDesctiption['nonfreedep']['description'] = 'This application depends on another non-Free application';
|
$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';
|
||||||
|
|
||||||
$antifeatureLower = strtolower($antifeature);
|
$antifeatureLower = strtolower($antifeature);
|
||||||
if(isset($antifeatureDesctiption[$antifeatureLower])) {
|
if(isset($antifeatureDescription[$antifeatureLower])) {
|
||||||
return $antifeatureDesctiption[$antifeatureLower];
|
return $antifeatureDescription[$antifeatureLower];
|
||||||
}
|
}
|
||||||
return array('name'=>$antifeature);
|
return array('name'=>$antifeature);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user