1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Hide other dashboard alerts until upgrade is complete.

This commit is contained in:
Cameron
2017-01-04 18:14:15 -08:00
parent 6e68aaa9a4
commit 1268b35f49
2 changed files with 24 additions and 3 deletions

View File

@@ -103,6 +103,7 @@ class admin_start
private $allowed_types = null;
private $refresh = false;
private $exit = false;
private $deprecated = array();
@@ -147,14 +148,23 @@ class admin_start
$this->deleteDeprecated();
}
e107::getDb()->db_Mark_Time('Check New Install');
$this->checkNewInstall();
e107::getDb()->db_Mark_Time('Check Core Update');
$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');
$this->checkPluginUpdate();
e107::getDb()->db_Mark_Time('Check Theme Update');
$this->checkThemeUpdate();
e107::getDb()->db_Mark_Time('Check Paths');
$this->checkPaths();
e107::getDb()->db_Mark_Time('Check Timezone');
@@ -238,7 +248,14 @@ class admin_start
global $dbupdate, $dbupdatep, $e107cache;
require_once(e_ADMIN.'update_routines.php');
update_check();
if(update_check() === true)
{
if(e_DEBUG !== true)
{
$this->exit = true;
}
}

View File

@@ -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 .= "<hr />";
$mes->addInfo($text);
}
return $update_needed;
}