mikuli.cz

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

commit 2b96b5091b1a6453b205501e6cd47323492b41df
parent 042177985f84182fb07cd2633b5266afcd1421b5
Author: markseu <mark2011@mayberg.se>
Date:   Thu, 25 Mar 2021 21:47:46 +0100

Updated event handling, convert old notification

Diffstat:
Msystem/extensions/update-current.ini | 4++--
Msystem/extensions/update.php | 9++++++++-
2 files changed, 10 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.49 +Version: 0.8.50 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: 2021-01-15 20:31:50 +Published: 2021-03-25 21:43:34 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.49"; + const VERSION = "0.8.50"; const PRIORITY = "2"; public $yellow; // access to API public $updates; // number of updates @@ -419,6 +419,13 @@ class YellowUpdate { $this->yellow->language->load("system/extensions/yellow-language.ini"); $this->yellow->page->error(503, "Flux capacitor is charging to 1.21 gigawatt, please reload page!"); } + if ($this->yellow->system->isExisting("updateNotification")) { // TODO: remove later, convert old notification + $updateEventPending = $this->yellow->system->get("updateNotification"); + $fileName = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("coreSystemFile"); + if (!$this->yellow->system->save($fileName, array("updateEventPending" => $updateEventPending))) { + $this->yellow->log("error", "Can't write file '$fileName'!"); + } + } } // Update system settings