1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Tweak of isCompatible method.

This commit is contained in:
Cameron
2021-02-13 06:15:42 -08:00
parent 0527993d98
commit 800f8734bf
4 changed files with 34 additions and 11 deletions

View File

@@ -1845,7 +1845,7 @@ class plugin_form_online_ui extends e_admin_form_ui
}
if(!e107::isCompatible($compat))
if(!e107::isCompatible($compat, 'plugin'))
{
$button = e107::getParser()->toGlyph('fa-bolt').ADLAN_121;
$class = 'btn btn-sm btn-warning';

View File

@@ -998,8 +998,7 @@ class theme_admin_form_ui extends e_admin_form_ui
$disabled = '';
$mainTitle = TPVLAN_10;
// if(version_compare($compat,$version, '<=') === false)
if(!e107::isCompatible($theme['compatibility']))
if(!e107::isCompatible($theme['compatibility'], 'theme'))
{
$disabled = 'disabled';
$mainTitle = defset('TPVLAN_97', "This theme requires a newer version of e107.");