mikuli.cz

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

commit baa95233d7c2b3f371a853362dd6badfb3178f3b
parent 44024d27aadd73b305f72f95d47009f746ddf332
Author: markseu <mark2011@mayberg.se>
Date:   Fri, 29 Mar 2024 22:33:19 +0100

Refactored code, maximise work not done

Diffstat:
Msystem/extensions/update-available.ini | 4++--
Msystem/extensions/update-current.ini | 4++--
Msystem/extensions/update.php | 8++------
3 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/system/extensions/update-available.ini b/system/extensions/update-available.ini @@ -789,14 +789,14 @@ Status: available system/extensions/turkish.php: turkish.php, create, update Extension: Update -Version: 0.8.99 +Version: 0.8.100 Description: Keep your website up to date. Developer: Anna Svensson Tag: feature DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-update DocumentationLanguage: en, de, sv -Published: 2024-03-26 22:35:01 +Published: 2024-03-29 22:29:25 Status: available system/extensions/update.php: update.php, create, update system/extensions/updatepatch.bin: updatepatch.php, create, additional diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -126,14 +126,14 @@ system/themes/stockholm-opensans-light.woff: stockholm-opensans-light.woff, crea system/themes/stockholm-opensans-regular.woff: stockholm-opensans-regular.woff, create, update, careful Extension: Update -Version: 0.8.99 +Version: 0.8.100 Description: Keep your website up to date. Developer: Anna Svensson Tag: feature DownloadUrl: https://github.com/annaesvensson/yellow-update/archive/refs/heads/main.zip DocumentationUrl: https://github.com/annaesvensson/yellow-update DocumentationLanguage: en, de, sv -Published: 2024-03-26 22:35:01 +Published: 2024-03-29 22:29:25 Status: available system/extensions/update.php: update.php, create, update system/extensions/updatepatch.bin: updatepatch.php, create, additional diff --git a/system/extensions/update.php b/system/extensions/update.php @@ -2,7 +2,7 @@ // Update extension, https://github.com/annaesvensson/yellow-update class YellowUpdate { - const VERSION = "0.8.99"; + const VERSION = "0.8.100"; const PRIORITY = "2"; public $yellow; // access to API public $extensions; // number of extensions @@ -850,11 +850,7 @@ class YellowUpdate { // Return extension root pages for content files public function getExtensionContentRootPages() { - $rootPages = array(); - foreach ($this->yellow->content->scanLocation("") as $page) { - if ($page->isAvailable() && $page->isVisible()) array_push($rootPages, $page); - } - return $rootPages; + return $this->yellow->content->scanLocation(""); } // Return extension files names for content files