diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 6e70f7e7c..0d52faef0 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -281,6 +281,14 @@ class pluginManager{ } + private function compatibilityLabel($val='') + { + $badge = (vartrue($val) > 1.9) ? "Made for v2" : '1.x'; + return $badge; + } + + + function pluginOnline() { global $plugin; @@ -314,7 +322,7 @@ class pluginManager{ { $row = $r['@attributes']; - $badge = ($row['compatibility'] > 1.9) ? "Made for v2" : '1.x'; + $badge = $this->compatibilityLabel($row['compatibility']);; $featured = ($row['featured']== 1) ? " Featured" : ''; $data[] = array( @@ -971,6 +979,7 @@ class pluginManager{ $plugAuthor = varset($plug_vars['author']['@attributes']['name'],''); $plugURL = varset($plug_vars['author']['@attributes']['url'],''); $plugDate = varset($plug_vars['@attributes']['date'],''); + $compatibility = varset($plug_vars['@attributes']['compatibility'],''); $description = varset($plug_vars['description']['@attributes']['lang']) ? $tp->toHTML($plug_vars['description']['@attributes']['lang'], false, "defs,emotes_off, no_make_clickable") : $tp->toHTML($plug_vars['description']['@value'], false, "emotes_off, no_make_clickable") ; @@ -1011,9 +1020,12 @@ class pluginManager{ $text .= (in_array("plugin_author",$this->fieldpref)) ? "