mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Add support for AGPL, LGPL and WTFPL in the web client
This commit is contained in:
parent
b56cc26b16
commit
f2aaf9e928
1 changed files with 17 additions and 7 deletions
|
|
@ -132,21 +132,31 @@ class FDroid
|
||||||
function getlicenseurl($license) {
|
function getlicenseurl($license) {
|
||||||
switch($license) {
|
switch($license) {
|
||||||
case 'MIT':
|
case 'MIT':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#X11License';
|
return 'https://www.gnu.org/licenses/license-list.html#X11License';
|
||||||
case 'NewBSD':
|
case 'NewBSD':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#ModifiedBSD';
|
return 'https://www.gnu.org/licenses/license-list.html#ModifiedBSD';
|
||||||
case 'BSD':
|
case 'BSD':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#OriginalBSD';
|
return 'https://www.gnu.org/licenses/license-list.html#OriginalBSD';
|
||||||
case 'GPLv3':
|
case 'GPLv3':
|
||||||
case 'GPLv3+':
|
case 'GPLv3+':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#GNUGPL';
|
return 'https://www.gnu.org/licenses/license-list.html#GNUGPLv3';
|
||||||
case 'GPLv2':
|
case 'GPLv2':
|
||||||
case 'GPLv2+':
|
case 'GPLv2+':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#GPLv2';
|
return 'https://www.gnu.org/licenses/license-list.html#GPLv2';
|
||||||
|
case 'AGPLv3':
|
||||||
|
case 'AGPLv3+':
|
||||||
|
return 'https://www.gnu.org/licenses/license-list.html#AGPLv3.0';
|
||||||
case 'LGPL':
|
case 'LGPL':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#LGPL';
|
return 'https://www.gnu.org/licenses/license-list.html#LGPL';
|
||||||
|
case 'LGPL':
|
||||||
|
case 'LGPLv3':
|
||||||
|
return 'https://www.gnu.org/licenses/license-list.html#LGPLv3';
|
||||||
|
case 'LGPLv2.1':
|
||||||
|
return 'https://www.gnu.org/licenses/license-list.html#LGPLv2.1';
|
||||||
case 'Apache2':
|
case 'Apache2':
|
||||||
return 'http://www.gnu.org/licenses/license-list.html#apache2';
|
return 'https://www.gnu.org/licenses/license-list.html#apache2';
|
||||||
|
case 'WTFPL':
|
||||||
|
return 'https://www.gnu.org/licenses/license-list.html#WTFPL';
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue