mirror of https://github.com/MISP/MISP
chg: [event:getEventRepublishBanStatus] Improved wording
parent
4c5daa55c5
commit
b71c73a304
|
@ -7345,7 +7345,7 @@ class Event extends AppModel
|
|||
if ($redis === false) {
|
||||
$banStatus['error'] = true;
|
||||
$banStatus['active'] = true;
|
||||
$banStatus['message'] = __('Reason: Could not reach redis to chech republish ban.');
|
||||
$banStatus['message'] = __('Reason: Could not reach redis to chech republish emailing ban status.');
|
||||
return $banStatus;
|
||||
}
|
||||
$redisKey = "misp:event_alert_republish_ban:{$event['Event']['uuid']}";
|
||||
|
@ -7353,7 +7353,7 @@ class Event extends AppModel
|
|||
if (!empty($banLiftTimestamp)) {
|
||||
$remainingMinutes = (intval($banLiftTimestamp) - time()) / 60;
|
||||
$banStatus['active'] = true;
|
||||
$banStatus['message'] = __('Reason: Event is banned from publishing. Ban will be lifted in %smin %ssec.', floor($remainingMinutes), $remainingMinutes % 60);
|
||||
$banStatus['message'] = __('Reason: Event is banned from sending out emails. Ban will be lifted in %smin %ssec.', floor($remainingMinutes), $remainingMinutes % 60);
|
||||
return $banStatus;
|
||||
} else {
|
||||
$redis->multi(Redis::PIPELINE)
|
||||
|
@ -7363,7 +7363,7 @@ class Event extends AppModel
|
|||
return $banStatus;
|
||||
}
|
||||
}
|
||||
$banStatus['message'] = __('Republishing ban setting is not enabled');
|
||||
$banStatus['message'] = __('Emailing republishing ban setting is not enabled');
|
||||
return $banStatus;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue