1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Akismet 7.0 incompatibility added.

This commit is contained in:
Cameron
2018-01-23 11:41:07 -08:00
parent 5c0ac614a9
commit d1ac8c62f7

View File

@@ -90,21 +90,22 @@ class admin_start
{ {
private $incompat = array( private $incompat = array(
'banhelper' => 1.7, array('banhelper', 1.5),
'slir_admin' => 1.0, array('banhelper', 1.7),
'facebook_like' => 0.7, array('slir_admin', 1.0),
'unanswered' => 1.4, array('facebook_like', 0.7),
'lightwindow' => '1.0b', array('unanswered', 1.4),
'aa_jquery' => 1.2, array('lightwindow', '1.0b'),
'aa_jquery' => 1.4, array('aa_jquery', 1.2),
'who' => 1.0, array('aa_jquery', 1.4),
'ratings' => 4.2, array('who', 1.0),
'lightbox' => 1.5, array('ratings', 4.2),
'e107slider' => 0.1, array('lightbox', 1.5),
'forumthanks' => 0.5, array('e107slider', 0.1),
'eclassifieds' => 1.11, array('forumthanks', 0.5),
'jshelpers' => '0.3b' array('eclassifieds', 1.11),
array('jshelpers', '0.3b'),
array('akismet', 7.0)
); );
@@ -516,9 +517,12 @@ TMPO;
$inCompatText = ""; $inCompatText = "";
$incompatFolders = array_keys($this->incompat); $incompatFolders = array_keys($this->incompat);
foreach($this->incompat as $folder => $version) foreach($this->incompat as $data)
{ {
if(vartrue($installedPlugs[$folder]) && $version == $installedPlugs[$folder]) $folder = $data[0];
$version = $data[1];
if(!empty($installedPlugs[$folder]) && ($version == $installedPlugs[$folder] || $version === '*'))
{ {
$inCompatText .= "<li>".$folder." v".$installedPlugs[$folder]."</li>"; $inCompatText .= "<li>".$folder." v".$installedPlugs[$folder]."</li>";
} }