Updated extensions, winter remix

This commit is contained in:
markseu 2020-11-28 14:37:38 +01:00
parent 668ac023c2
commit 0f03615400
3 changed files with 10 additions and 9 deletions

View file

@ -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");

View file

@ -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>." : "";

View file

@ -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