mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Hide other dashboard alerts until upgrade is complete.
This commit is contained in:
@@ -103,6 +103,7 @@ class admin_start
|
|||||||
|
|
||||||
private $allowed_types = null;
|
private $allowed_types = null;
|
||||||
private $refresh = false;
|
private $refresh = false;
|
||||||
|
private $exit = false;
|
||||||
|
|
||||||
private $deprecated = array();
|
private $deprecated = array();
|
||||||
|
|
||||||
@@ -147,14 +148,23 @@ class admin_start
|
|||||||
$this->deleteDeprecated();
|
$this->deleteDeprecated();
|
||||||
}
|
}
|
||||||
|
|
||||||
e107::getDb()->db_Mark_Time('Check New Install');
|
|
||||||
$this->checkNewInstall();
|
|
||||||
e107::getDb()->db_Mark_Time('Check Core Update');
|
e107::getDb()->db_Mark_Time('Check Core Update');
|
||||||
$this->checkCoreUpdate();
|
$this->checkCoreUpdate();
|
||||||
|
|
||||||
|
if($this->exit === true)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
e107::getDb()->db_Mark_Time('Check New Install');
|
||||||
|
$this->checkNewInstall();
|
||||||
|
|
||||||
e107::getDb()->db_Mark_Time('Check Plugin Update');
|
e107::getDb()->db_Mark_Time('Check Plugin Update');
|
||||||
$this->checkPluginUpdate();
|
$this->checkPluginUpdate();
|
||||||
|
|
||||||
e107::getDb()->db_Mark_Time('Check Theme Update');
|
e107::getDb()->db_Mark_Time('Check Theme Update');
|
||||||
$this->checkThemeUpdate();
|
$this->checkThemeUpdate();
|
||||||
|
|
||||||
e107::getDb()->db_Mark_Time('Check Paths');
|
e107::getDb()->db_Mark_Time('Check Paths');
|
||||||
$this->checkPaths();
|
$this->checkPaths();
|
||||||
e107::getDb()->db_Mark_Time('Check Timezone');
|
e107::getDb()->db_Mark_Time('Check Timezone');
|
||||||
@@ -238,7 +248,14 @@ class admin_start
|
|||||||
global $dbupdate, $dbupdatep, $e107cache;
|
global $dbupdate, $dbupdatep, $e107cache;
|
||||||
|
|
||||||
require_once(e_ADMIN.'update_routines.php');
|
require_once(e_ADMIN.'update_routines.php');
|
||||||
update_check();
|
|
||||||
|
if(update_check() === true)
|
||||||
|
{
|
||||||
|
if(e_DEBUG !== true)
|
||||||
|
{
|
||||||
|
$this->exit = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -437,7 +437,11 @@ function update_check()
|
|||||||
// $text = ADLAN_120. "<a class='btn btn-xs btn-inline' href='".e_ADMIN_ABS."e107_update.php'>". e107::getParser()->toGlyph('fa-chevron-circle-right')."</a>";
|
// $text = ADLAN_120. "<a class='btn btn-xs btn-inline' href='".e_ADMIN_ABS."e107_update.php'>". e107::getParser()->toGlyph('fa-chevron-circle-right')."</a>";
|
||||||
// $text .= "<hr />";
|
// $text .= "<hr />";
|
||||||
$mes->addInfo($text);
|
$mes->addInfo($text);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return $update_needed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user