From: Daniel Martí Date: Thu, 20 Feb 2014 09:28:47 +0000 (+0100) Subject: Add support for AGPL, LGPL and WTFPL in the web client X-Git-Tag: 0.2~240 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f2aaf9e928ff943db24ae2888f89ab09e3a2f1cf;p=fdroidserver.git Add support for AGPL, LGPL and WTFPL in the web client --- diff --git a/wp-fdroid/wp-fdroid.php b/wp-fdroid/wp-fdroid.php index e61be216..4b698177 100644 --- a/wp-fdroid/wp-fdroid.php +++ b/wp-fdroid/wp-fdroid.php @@ -132,21 +132,31 @@ class FDroid function getlicenseurl($license) { switch($license) { case 'MIT': - return 'http://www.gnu.org/licenses/license-list.html#X11License'; + return 'https://www.gnu.org/licenses/license-list.html#X11License'; case 'NewBSD': - return 'http://www.gnu.org/licenses/license-list.html#ModifiedBSD'; + return 'https://www.gnu.org/licenses/license-list.html#ModifiedBSD'; 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+': - return 'http://www.gnu.org/licenses/license-list.html#GNUGPL'; + return 'https://www.gnu.org/licenses/license-list.html#GNUGPLv3'; 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': - 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': - 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: return null; }