X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FTemporal.php;h=d121d59770657dc8e3b59a1efceef22567921a3b;hb=e0a763b07f12ecb7389925100959f9ac6ebe85a8;hp=670c273c045cbb6a8f99e5fa79a4d2ca03eb200b;hpb=8a46c786f37550160d81e7b7ecbcacb4c9fff493;p=friendica.git diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index 670c273c04..d121d59770 100644 --- a/src/Util/Temporal.php +++ b/src/Util/Temporal.php @@ -14,9 +14,6 @@ use Friendica\Core\PConfig; use Friendica\Core\Renderer; use Friendica\Database\DBA; -require_once 'boot.php'; -require_once 'include/text.php'; - /** * @brief Temporal class */ @@ -463,11 +460,11 @@ class Temporal $tddate = intval(DateTimeFormat::localNow('j')); } - $str_month = day_translate($mtab[$m]); + $str_month = L10n::getDay($mtab[$m]); $o = '
' . mb_substr(day_translate($dn[$a]), 0, 3, 'UTF-8') . ' | '; + $o .= '' . mb_substr(L10n::getDay($dn[$a]), 0, 3, 'UTF-8') . ' | '; } $o .= '
---|---|
"; $day = str_replace(' ', ' ', sprintf('%2.2d', $d)); if ($started) { - if (x($links, $d) !== false) { + if (isset($links[$d])) { $o .= "$day"; } else { $o .= $day; |