fix date-time_today was not converted to et2-date-time-today

This commit is contained in:
ralf 2022-07-28 16:34:25 +02:00
parent 5c637e47be
commit 76b8a783e5

View File

@ -300,7 +300,7 @@ function send_template()
$str = preg_replace_callback('#<date(-time[^\s]*|-duration|-since)?\s([^>]+)/>#', static function($matches) $str = preg_replace_callback('#<date(-time[^\s]*|-duration|-since)?\s([^>]+)/>#', static function($matches)
{ {
if ($matches[1] === 'date-time_today') $matches[1] = 'date-time-today'; if ($matches[1] === '-time_today') $matches[1] = '-time-today';
return "<et2-date$matches[1] $matches[2]></et2-date$matches[1]>"; return "<et2-date$matches[1] $matches[2]></et2-date$matches[1]>";
}, $str); }, $str);