1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Option to bypass maintenance flag added.

This commit is contained in:
Cameron 2014-11-19 17:13:08 -08:00
parent f8048410b9
commit e7ad72b3a2
2 changed files with 3 additions and 1 deletions

View File

@ -980,7 +980,7 @@ if(varset($pref['force_userupdate']) && USER && !isset($_E107['no_forceuserupdat
$sql->db_Mark_Time('Start: Signup/splash/admin');
if(($pref['membersonly_enabled'] && !isset($_E107['allow_guest'])) || ($pref['maintainance_flag'] && empty($_E107['cli'])))
if(($pref['membersonly_enabled'] && !isset($_E107['allow_guest'])) || ($pref['maintainance_flag'] && empty($_E107['cli']) && empty($_E107['no_maintenance'])))
{
//XXX move force_userupdate() also?
e107::getRedirect()->checkMaintenance();

View File

@ -493,6 +493,8 @@ class mailout_main_ui extends e_admin_ui
public function beforeUpdate($new_data, $old_data, $id)
{
$ret = $this->processData($new_data);
$ret['mail_content_status'] = MAIL_STATUS_TEMP;
return $ret;
}