Move L10n::getDay() calls to DI::l10n()->getDay() calls

This commit is contained in:
nupplaPhil 2020-01-18 20:54:46 +01:00
parent d3255afa66
commit cb4ad529f4
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 11 additions and 11 deletions

View file

@ -466,11 +466,11 @@ class Temporal
$tddate = intval(DateTimeFormat::localNow('j'));
}
$str_month = L10n::getDay($mtab[$m]);
$str_month = DI::l10n()->getDay($mtab[$m]);
$o = '<table class="calendar' . $class . '">';
$o .= "<caption>$str_month $y</caption><tr>";
for ($a = 0; $a < 7; $a ++) {
$o .= '<th>' . mb_substr(L10n::getDay($dn[$a]), 0, 3, 'UTF-8') . '</th>';
$o .= '<th>' . mb_substr(DI::l10n()->getDay($dn[$a]), 0, 3, 'UTF-8') . '</th>';
}
$o .= '</tr><tr>';