1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

Fix for success alert message after maintenance message/status modified.

This commit is contained in:
Cameron
2018-01-09 14:43:26 -08:00
parent c5394784ff
commit 3289d16111
2 changed files with 5 additions and 4 deletions

View File

@@ -51,18 +51,19 @@ if(isset($_POST['updatesettings']))
{
e107::getLog()->add(($pref['maintainance_flag'] == 0) ? 'MAINT_02' : 'MAINT_01', $pref['maintainance_text'], E_LOG_INFORMATIVE, '');
save_prefs();
$mes->addSuccess(UGFLAN_1);
// $mes->addSuccess(UGFLAN_1);
}
else
{
$mes->addInfo(LAN_NO_CHANGE);
}
$pref = e107::getConfig('core', true, true)->getPref();
if(!e_AJAX_REQUEST)
{
header("location:".e_SELF);
exit();
// header("location:".e_SELF);
// exit();
}
}