Updated extensions, winter remix
This commit is contained in:
parent
668ac023c2
commit
0f03615400
|
@ -2,7 +2,7 @@
|
||||||
// Bundle extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle
|
// Bundle extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle
|
||||||
|
|
||||||
class YellowBundle {
|
class YellowBundle {
|
||||||
const VERSION = "0.8.19";
|
const VERSION = "0.8.20";
|
||||||
public $yellow; // access to API
|
public $yellow; // access to API
|
||||||
|
|
||||||
// Handle initialisation
|
// Handle initialisation
|
||||||
|
@ -16,7 +16,7 @@ class YellowBundle {
|
||||||
$statusCode = 200;
|
$statusCode = 200;
|
||||||
$path = $this->yellow->system->get("coreExtensionDirectory");
|
$path = $this->yellow->system->get("coreExtensionDirectory");
|
||||||
foreach ($this->yellow->toolbox->getDirectoryEntries($path, "/^bundle-(.*)/", false, false) as $entry) {
|
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 ($cleanup && !$this->yellow->toolbox->deleteFile($entry)) $statusCode = 500;
|
||||||
}
|
}
|
||||||
if ($statusCode==500) $this->yellow->log("error", "Can't delete files in directory '$path'!\n");
|
if ($statusCode==500) $this->yellow->log("error", "Can't delete files in directory '$path'!\n");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
// Core extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
||||||
|
|
||||||
class YellowCore {
|
class YellowCore {
|
||||||
const VERSION = "0.8.35";
|
const VERSION = "0.8.36";
|
||||||
const RELEASE = "0.8.16";
|
const RELEASE = "0.8.16";
|
||||||
public $page; // current page
|
public $page; // current page
|
||||||
public $content; // content files
|
public $content; // content files
|
||||||
|
@ -171,8 +171,9 @@ class YellowCore {
|
||||||
// Process fatal runtime error
|
// Process fatal runtime error
|
||||||
public function processFatalError() {
|
public function processFatalError() {
|
||||||
$error = error_get_last();
|
$error = error_get_last();
|
||||||
if (!is_null($error) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) {
|
if (!is_null($error) && isset($error["type"]) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) {
|
||||||
$fileName = substru($error["file"], strlenu($this->system->get("coreServerInstallDirectory")));
|
$fileNameAbsolute = isset($error["file"]) ? $error["file"] : "";
|
||||||
|
$fileName = substru($fileNameAbsolute, strlenu($this->system->get("coreServerInstallDirectory")));
|
||||||
$this->log("error", "Can't parse file '$fileName'!");
|
$this->log("error", "Can't parse file '$fileName'!");
|
||||||
@header($this->toolbox->getHttpStatusFormatted(500));
|
@header($this->toolbox->getHttpStatusFormatted(500));
|
||||||
$troubleshooting = PHP_SAPI!="cli" ? "<a href=\"".$this->getTroubleshootingUrl()."\">See troubleshooting</a>." : "";
|
$troubleshooting = PHP_SAPI!="cli" ? "<a href=\"".$this->getTroubleshootingUrl()."\">See troubleshooting</a>." : "";
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# Datenstrom Yellow update settings
|
# Datenstrom Yellow update settings
|
||||||
|
|
||||||
Extension: Bundle
|
Extension: Bundle
|
||||||
Version: 0.8.19
|
Version: 0.8.20
|
||||||
Description: Bundle website files.
|
Description: Bundle website files.
|
||||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle
|
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/bundle
|
||||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/bundle.zip
|
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
|
Developer: Datenstrom
|
||||||
Tag: feature
|
Tag: feature
|
||||||
system/extensions/bundle.php: bundle.php, create, update
|
system/extensions/bundle.php: bundle.php, create, update
|
||||||
|
@ -21,11 +21,11 @@ Tag: feature
|
||||||
system/extensions/command.php: command.php, create, update
|
system/extensions/command.php: command.php, create, update
|
||||||
|
|
||||||
Extension: Core
|
Extension: Core
|
||||||
Version: 0.8.35
|
Version: 0.8.36
|
||||||
Description: Core functionality of the website.
|
Description: Core functionality of the website.
|
||||||
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/core
|
||||||
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/core.zip
|
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
|
Developer: Datenstrom
|
||||||
Tag: feature
|
Tag: feature
|
||||||
system/extensions/core.php: core.php, create, update
|
system/extensions/core.php: core.php, create, update
|
||||||
|
|
Loading…
Reference in a new issue