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:
@@ -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';
|
||||
|
@@ -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.");
|
||||
|
Reference in New Issue
Block a user