Browse code

do not offer autoupgrade for drupal-7

Bernd Wurst authored on 08/05/2019 11:08:03
Showing 1 changed files
... ...
@@ -54,7 +54,7 @@ function directory_in_use($directory)
54 54
 function upgradeable($appname, $version)
55 55
 {
56 56
     DEBUG("Is {$appname}-{$version} upgradeable?");
57
-    if ($appname == 'Drupal7') {
57
+    /*if ($appname == 'Drupal7') {
58 58
         DEBUG("found Drupal-7.*!");
59 59
         return 'drupal7';
60 60
     }
... ...
@@ -65,7 +65,8 @@ function upgradeable($appname, $version)
65 65
             return 'drupal7';
66 66
         }
67 67
         DEBUG("Version: ".substr($version, 0, 2));
68
-    } elseif ($appname == 'MediaWiki') {
68
+    } */
69
+    if ($appname == 'MediaWiki') {
69 70
         DEBUG("found MediaWiki");
70 71
         return 'mediawiki';
71 72
     }