mikuli.cz

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

commit 8dc1d2961fa850b2cc43753be72eaca8e995deda
parent 40183a40846c8a4b6ec8571172ebb933ab69b550
Author: markseu <mark2011@mayberg.se>
Date:   Tue, 24 Oct 2023 10:21:37 +0200

Updated API

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

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -2,7 +2,7 @@ // Core extension, https://github.com/annaesvensson/yellow-core class YellowCore { - const VERSION = "0.8.122"; + const VERSION = "0.8.123"; const RELEASE = "0.8.23"; public $content; // content files public $media; // media files @@ -3617,17 +3617,19 @@ class YellowPageCollection extends ArrayObject { if ($groupByDate) { $group = $this->yellow->language->getDateFormatted(strtotime($group), $format); } - if (!isset($array[$group])) { - $groupSearch = strtoloweru($group); - foreach (array_keys($array) as $groupFound) { - if (strtoloweru($groupFound)==$groupSearch) { - $group = $groupFound; - break; + if (!is_string_empty($group)) { + if (!isset($array[$group])) { + $groupSearch = strtoloweru($group); + foreach (array_keys($array) as $groupFound) { + if (strtoloweru($groupFound)==$groupSearch) { + $group = $groupFound; + break; + } } + if (!isset($array[$group])) $array[$group] = new YellowPageCollection($this->yellow); } - $array[$group] = new YellowPageCollection($this->yellow); + $array[$group]->append($page); } - $array[$group]->append($page); } } } diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -1,11 +1,11 @@ # Datenstrom Yellow update settings Extension: Core -Version: 0.8.122 +Version: 0.8.123 Description: Core functionality of your website. DocumentationUrl: https://github.com/annaesvensson/yellow-core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/core.zip -Published: 2023-10-23 01:48:23 +Published: 2023-10-24 10:16:57 Developer: Anna Svensson Tag: feature system/extensions/core.php: core.php, create, update