X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/a3599fda20d57248b09462cf5d10537675e18db9..cd26522ba6ff68c18e1504b022ca92f4d01827be:/Classes/class-plugin-git.php diff --git a/Classes/class-plugin-git.php b/Classes/class-plugin-git.php index 8b128be..4bf9dab 100644 --- a/Classes/class-plugin-git.php +++ b/Classes/class-plugin-git.php @@ -1,5 +1,5 @@ -
Inompatible
+
Incompatible
err) die("Could not fetch list.\n"); - global $config; ?>
- data->list as $p) { + $tok = split(WEBPANEL_VERSION,"-"); + $upgradeRequired = false; + $wpversion = $tok[0]; + if ($p->minver > $wpversion) + $upgradeRequired = true; $installed = in_array($p->name, $config['plugins']) ? true : false; if (is_string($p)) continue; @@ -121,23 +126,17 @@ class PluginRepo
More Info
-
Install
+ +
Panel Upgrade Required
+ +
class="btn-install-plugin btn btn-primary">Install
= 3) - { - ?> - -
-