mikuli.cz

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

commit 0f036154009e70c6846a7e3033fdd9e56d135ed1
parent 668ac023c2d04b57d9c33f4e8eaf1414aa5533df
Author: markseu <mark2011@mayberg.se>
Date:   Sat, 28 Nov 2020 14:37:38 +0100

Updated extensions, winter remix

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

diff --git a/system/extensions/bundle.php b/system/extensions/bundle.php @@ -2,7 +2,7 @@ // Bundle extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle class YellowBundle { - const VERSION = "0.8.19"; + const VERSION = "0.8.20"; public $yellow; // access to API // Handle initialisation @@ -16,7 +16,7 @@ class YellowBundle { $statusCode = 200; $path = $this->yellow->system->get("coreExtensionDirectory"); foreach ($this->yellow->toolbox->getDirectoryEntries($path, "/^bundle-(.*)/", false, false) as $entry) { - $cleanup = !$this->isBundleRequired($entry) || $action=="uninstall"; + $cleanup = $action!="daily" || !$this->isBundleRequired($entry); if ($cleanup && !$this->yellow->toolbox->deleteFile($entry)) $statusCode = 500; } if ($statusCode==500) $this->yellow->log("error", "Can't delete files in directory '$path'!\n"); 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.35"; + const VERSION = "0.8.36"; const RELEASE = "0.8.16"; public $page; // current page public $content; // content files @@ -171,8 +171,9 @@ class YellowCore { // Process fatal runtime error public function processFatalError() { $error = error_get_last(); - if (!is_null($error) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) { - $fileName = substru($error["file"], strlenu($this->system->get("coreServerInstallDirectory"))); + if (!is_null($error) && isset($error["type"]) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) { + $fileNameAbsolute = isset($error["file"]) ? $error["file"] : ""; + $fileName = substru($fileNameAbsolute, strlenu($this->system->get("coreServerInstallDirectory"))); $this->log("error", "Can't parse file '$fileName'!"); @header($this->toolbox->getHttpStatusFormatted(500)); $troubleshooting = PHP_SAPI!="cli" ? "<a href=\"".$this->getTroubleshootingUrl()."\">See troubleshooting</a>." : ""; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -1,11 +1,11 @@ # Datenstrom Yellow update settings Extension: Bundle -Version: 0.8.19 +Version: 0.8.20 Description: Bundle website files. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/bundle.zip -Published: 2020-11-26 11:08:05 +Published: 2020-11-28 14:15:46 Developer: Datenstrom Tag: feature system/extensions/bundle.php: bundle.php, create, update @@ -21,11 +21,11 @@ Tag: feature system/extensions/command.php: command.php, create, update Extension: Core -Version: 0.8.35 +Version: 0.8.36 Description: Core functionality of the website. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip -Published: 2020-11-24 17:43:07 +Published: 2020-11-28 14:32:31 Developer: Datenstrom Tag: feature system/extensions/core.php: core.php, create, update