mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 9df1b47a69402a0f11c4eb52a0365a2d4d20c0c9
parent a26d0577fe8db7345d9ad99414f7f762df36dc7f
Author: markseu <mark2011@mayberg.se>
Date:   Tue, 21 Jun 2022 20:21:00 +0200

Updated extensions for PHP 8.1 compatibility

Diffstat:
Msystem/extensions/core.php | 4++--
Msystem/extensions/update-current.ini | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -2,7 +2,7 @@ // Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core class YellowCore { - const VERSION = "0.8.86"; + const VERSION = "0.8.87"; const RELEASE = "0.8.20"; public $page; // current page public $content; // content files @@ -1817,7 +1817,7 @@ class YellowLanguage { $monthGenitive = $dateMonthsGenitive[date("n", $timestamp) - 1]; $weekday = $dateWeekdays[date("N", $timestamp) - 1]; $timeZone = $this->yellow->system->get("coreTimezone"); - $timeZoneHelper = new DateTime(null, new DateTimeZone($timeZone)); + $timeZoneHelper = new DateTime("now", new DateTimeZone($timeZone)); $timeZoneOffset = $timeZoneHelper->getOffset(); $timeZoneAbbreviation = "GMT".($timeZoneOffset<0 ? "-" : "+").abs(intval($timeZoneOffset/3600)); $format = preg_replace("/(?<!\\\)F/", addcslashes($monthNominative, "A..Za..z"), $format); diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -21,11 +21,11 @@ Tag: feature system/extensions/command.php: command.php, create, update Extension: Core -Version: 0.8.86 +Version: 0.8.87 Description: Core functionality of the website. DocumentationUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip -Published: 2022-06-20 13:22:16 +Published: 2022-06-21 20:16:11 Developer: Datenstrom Tag: feature system/extensions/core.php: core.php, create, update