chiark / gitweb /
Add support for AGPL, LGPL and WTFPL in the web client
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 20 Feb 2014 09:28:47 +0000 (10:28 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 20 Feb 2014 09:34:13 +0000 (10:34 +0100)
wp-fdroid/wp-fdroid.php

index e61be2169f16b97e6a0d113b6721b8ffc2401752..4b698177099d5e3ed79afc0e7bfafb6b13cfa1aa 100644 (file)
@@ -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;
                }