mirror of
https://github.com/e107inc/e107.git
synced 2025-07-24 16:31:48 +02:00
Issue #5481 clear update info after github update.
This commit is contained in:
@@ -80,7 +80,7 @@ if(e_AJAX_REQUEST && getperms('0') && varset($_GET['mode']) == 'addons' && ($_G
|
||||
$tp = e107::getParser();
|
||||
$ns->setUniqueId('e-addon-updates');
|
||||
$ns->setStyle('warning');
|
||||
$ret = $ns->tablerender($tp->toGlyph('fa-arrow-circle-o-down').LAN_UPDATE_AVAILABLE,$text,'default', true);
|
||||
$ret = $ns->tablerender($tp->toGlyph('fa-arrow-circle-o-down').defset('LAN_UPDATE_AVAILABLE'),$text,'default', true);
|
||||
|
||||
echo $ret;
|
||||
|
||||
@@ -292,7 +292,7 @@ function admin_purge_related($table, $id)
|
||||
$num = $_com->delete_comments($table, $id);
|
||||
if ($num)
|
||||
{
|
||||
$msg .= $num." ".LAN_COMMENTS." ".LAN_DELETED."<br />";
|
||||
$msg .= $num." ".LAN_COMMENTS." ".defset('LAN_DELETED', 'Deleted')."<br />";
|
||||
}
|
||||
|
||||
// Delete any related ratings
|
||||
@@ -301,7 +301,7 @@ function admin_purge_related($table, $id)
|
||||
$num = $_rate->delete_ratings($table, $id);
|
||||
if ($num)
|
||||
{
|
||||
$msg .= LAN_RATING." ".LAN_DELETED."<br />";
|
||||
$msg .= LAN_RATING." ".defset('LAN_DELETED', 'Deleted')."<br />";
|
||||
}
|
||||
|
||||
if ($msg)
|
||||
|
@@ -422,6 +422,8 @@ class system_tools
|
||||
e107::getRender()->tablerender(DBLAN_10.SEP.DBLAN_112, e107::getMessage()->render());
|
||||
|
||||
e107::getCache()->clearAll('system');
|
||||
e107::getSession()->clear('core-update-status'); // true when the update alert should be displayed.
|
||||
e107::getSession()->clear('core-update-checked'); // if the update check has been performed already or not.
|
||||
|
||||
}
|
||||
|
||||
|
@@ -654,6 +654,11 @@ function update_core_database($type = '')
|
||||
|
||||
}
|
||||
|
||||
if(!isset($pref['admin_navbar_debug']))
|
||||
{
|
||||
return update_needed("Upgrade to 2.4 required (install skin).");
|
||||
}
|
||||
|
||||
if(!isset($pref['lan_global_list']['news']))
|
||||
{
|
||||
if($just_check)
|
||||
|
@@ -83,6 +83,8 @@ class _system_cron
|
||||
e107::getCache()->clearAll('js');
|
||||
e107::getCache()->clearAll('library');
|
||||
e107::getCache()->clearAll('browser');
|
||||
e107::getSession()->clear('core-update-status'); // true when the update alert should be displayed.
|
||||
e107::getSession()->clear('core-update-checked'); // true if the update check has been performed already. false if not.
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user