mikuli.cz

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

commit 668ac023c2d04b57d9c33f4e8eaf1414aa5533df
parent ecf084cc8d733cadba9227185b2114809fce4305
Author: markseu <mark2011@mayberg.se>
Date:   Thu, 26 Nov 2020 18:10:33 +0100

Better handling of old layout files

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

diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -89,11 +89,11 @@ 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.45 +Version: 0.8.46 Description: Keep your website up to date. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/update DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/update.zip -Published: 2020-11-20 16:47:11 +Published: 2020-11-26 18:06:08 Developer: Datenstrom Tag: feature system/extensions/update.php: update.php, create, update diff --git a/system/extensions/update.php b/system/extensions/update.php @@ -2,7 +2,7 @@ // Update extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/update class YellowUpdate { - const VERSION = "0.8.45"; + const VERSION = "0.8.46"; const PRIORITY = "2"; public $yellow; // access to API public $updates; // number of updates @@ -47,6 +47,7 @@ class YellowUpdate { foreach ($this->yellow->toolbox->getDirectoryEntriesRecursive($path, "/^.*\.html$/", true, false) as $entry) { $key = str_replace("pages", "", $this->yellow->lookup->normaliseName(basename($entry), true, true)); $fileData = $fileDataNew = $this->yellow->toolbox->readFile($entry); + $fileDataNew = str_replace("text->getHtml", "language->getTextHtml", $fileDataNew); $fileDataNew = str_replace("yellow->page->getPages()", "yellow->page->getPages(\"$key\")", $fileDataNew); $fileDataNew = str_replace("\$page = \$this->yellow->content->shared(\"header\")", "\$page = null", $fileDataNew); $fileDataNew = str_replace("\$page = \$this->yellow->content->shared(\"footer\")", "\$page = null", $fileDataNew);