X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FTemporal.php;h=b6392d72fc043f9e853d3e6315390e743c96a100;hb=2e602afd3e1be80dc0e14db98ce0445c58d5231c;hp=670c273c045cbb6a8f99e5fa79a4d2ca03eb200b;hpb=bd972151478f40f73585519110700222a1931d44;p=friendica.git diff --git a/src/Util/Temporal.php b/src/Util/Temporal.php index 670c273c04..b6392d72fc 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 */ @@ -129,7 +126,7 @@ class Temporal */ public static function getDateofBirthField($dob) { - $a = get_app(); + $a = \get_app(); list($year, $month, $day) = sscanf($dob, '%4d-%2d-%2d'); @@ -463,11 +460,11 @@ class Temporal $tddate = intval(DateTimeFormat::localNow('j')); } - $str_month = day_translate($mtab[$m]); + $str_month = L10n::getDay($mtab[$m]); $o = ''; $o .= ""; for ($a = 0; $a < 7; $a ++) { - $o .= ''; + $o .= ''; } $o .= ''; @@ -481,7 +478,7 @@ class Temporal $o .= "
$str_month $y
' . mb_substr(day_translate($dn[$a]), 0, 3, 'UTF-8') . '' . mb_substr(L10n::getDay($dn[$a]), 0, 3, 'UTF-8') . '
"; $day = str_replace(' ', ' ', sprintf('%2.2d', $d)); if ($started) { - if (x($links, $d) !== false) { + if (isset($links[$d])) { $o .= "$day"; } else { $o .= $day;