Compare commits
2 Commits
611afb7944
...
f03bde7c50
Author | SHA1 | Date | |
---|---|---|---|
f03bde7c50 | |||
11c61525e0 |
|
@ -265,13 +265,13 @@ final class MDPlausi {
|
||||||
*/
|
*/
|
||||||
private function _evaluateProductionAfterPostproduction():void {
|
private function _evaluateProductionAfterPostproduction():void {
|
||||||
|
|
||||||
if ($this->_post_production->earliest_event_type !== 0
|
if ($this->_post_production->latest_event_type !== 0
|
||||||
&& $this->_production->earliest_event_type !== 0
|
&& $this->_production->earliest_event_type !== 0
|
||||||
&& $this->_post_production->earliest < $this->_production->earliest) {
|
&& $this->_post_production->latest < $this->_production->earliest) {
|
||||||
|
|
||||||
$message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->earliest_event_type);
|
$message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->latest_event_type);
|
||||||
|
|
||||||
$message .= $this->_post_production->formulateMessagePartForEarliest($this->_tlLoader);
|
$message .= $this->_post_production->formulateMessagePartForLatest($this->_tlLoader);
|
||||||
|
|
||||||
$message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type);
|
$message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type);
|
||||||
|
|
||||||
|
@ -282,6 +282,22 @@ final class MDPlausi {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if ($this->_post_production->earliest_event_type !== 0
|
||||||
|
&& $this->_production->earliest_event_type !== 0
|
||||||
|
&& $this->_post_production->earliest < $this->_production->earliest) {
|
||||||
|
|
||||||
|
$message = $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_post_production->earliest_event_type);
|
||||||
|
|
||||||
|
$message .= $this->_post_production->formulateMessagePartForEarliest($this->_tlLoader);
|
||||||
|
|
||||||
|
$message .= ' ' . strtolower($this->_tlLoader->tl("quality", "quality", "before_possibly")) . ' ' . $this->_tlLoader->tl("eventtype_name", "eventname", (string)$this->_production->earliest_event_type);
|
||||||
|
|
||||||
|
$message .= $this->_production->formulateMessagePartForEarliest($this->_tlLoader);
|
||||||
|
|
||||||
|
$this->_messageList[] = $message;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
else if ($this->_post_production->earliest_event_type !== 0
|
else if ($this->_post_production->earliest_event_type !== 0
|
||||||
&& $this->_production->latest_event_type !== 0
|
&& $this->_production->latest_event_type !== 0
|
||||||
&& $this->_post_production->earliest < $this->_production->latest) {
|
&& $this->_post_production->earliest < $this->_production->latest) {
|
||||||
|
|
|
@ -37,8 +37,8 @@ final class MDPlausiEvent {
|
||||||
|
|
||||||
if (empty($time)) return ['earliest' => false, 'latest' => false];
|
if (empty($time)) return ['earliest' => false, 'latest' => false];
|
||||||
|
|
||||||
// 2005
|
// 20, -1, 233, -233, 2005, -2005
|
||||||
if (in_array(strlen($time), [4, 5], true) and is_numeric(substr($time, 1))) {
|
if (in_array(strlen($time), [2, 3, 4, 5], true) and is_numeric(substr($time, 1))) {
|
||||||
return [
|
return [
|
||||||
'earliest' => strtotime($time . '-01-01'),
|
'earliest' => strtotime($time . '-01-01'),
|
||||||
'latest' => strtotime($time . '-12-31'),
|
'latest' => strtotime($time . '-12-31'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user