Updated fatal error message

This commit is contained in:
markseu 2024-05-02 17:43:32 +02:00
parent dae64c1d84
commit 64b071c105
3 changed files with 6 additions and 6 deletions

View file

@ -149,14 +149,14 @@ system/themes/copenhagen.css: copenhagen.css, create, update, careful
system/themes/copenhagen.png: copenhagen.png, create system/themes/copenhagen.png: copenhagen.png, create
Extension: Core Extension: Core
Version: 0.9.8 Version: 0.9.9
Description: Core functionality of your website. Description: Core functionality of your website.
Developer: Anna Svensson Developer: Anna Svensson
Tag: feature Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-core DocumentationUrl: https://github.com/annaesvensson/yellow-core
DocumentationLanguage: en, de, sv DocumentationLanguage: en, de, sv
Published: 2024-04-25 13:05:12 Published: 2024-05-02 16:35:25
Status: available Status: available
system/workers/core.php: core.php, create, update system/workers/core.php: core.php, create, update
system/extensions/core.php: coreupdate.txt, update system/extensions/core.php: coreupdate.txt, update

View file

@ -1,14 +1,14 @@
# Datenstrom Yellow extension settings # Datenstrom Yellow extension settings
Extension: Core Extension: Core
Version: 0.9.8 Version: 0.9.9
Description: Core functionality of your website. Description: Core functionality of your website.
Developer: Anna Svensson Developer: Anna Svensson
Tag: feature Tag: feature
DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip DownloadUrl: https://github.com/annaesvensson/yellow-core/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-core DocumentationUrl: https://github.com/annaesvensson/yellow-core
DocumentationLanguage: en, de, sv DocumentationLanguage: en, de, sv
Published: 2024-04-25 13:05:12 Published: 2024-05-02 16:35:25
Status: available Status: available
system/workers/core.php: core.php, create, update system/workers/core.php: core.php, create, update
system/extensions/core.php: coreupdate.txt, update system/extensions/core.php: coreupdate.txt, update

View file

@ -2,7 +2,7 @@
// Core extension, https://github.com/annaesvensson/yellow-core // Core extension, https://github.com/annaesvensson/yellow-core
class YellowCore { class YellowCore {
const VERSION = "0.9.8"; const VERSION = "0.9.9";
const RELEASE = "0.9"; const RELEASE = "0.9";
public $content; // content files public $content; // content files
public $media; // media files public $media; // media files
@ -166,7 +166,7 @@ class YellowCore {
if (!is_null($error) && isset($error["type"]) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) { if (!is_null($error) && isset($error["type"]) && ($error["type"]==E_ERROR || $error["type"]==E_PARSE)) {
$fileNameAbsolute = isset($error["file"]) ? $error["file"] : ""; $fileNameAbsolute = isset($error["file"]) ? $error["file"] : "";
$fileName = substru($fileNameAbsolute, strlenu($this->system->get("coreServerInstallDirectory"))); $fileName = substru($fileNameAbsolute, strlenu($this->system->get("coreServerInstallDirectory")));
$this->toolbox->log("error", "Can't parse file '$fileName'!"); $this->toolbox->log("error", "Process file '$fileName' with fatal error!");
$this->toolbox->sendHttpHeader($this->toolbox->getHttpStatusFormatted(500)); $this->toolbox->sendHttpHeader($this->toolbox->getHttpStatusFormatted(500));
$troubleshooting = PHP_SAPI!="cli" ? $troubleshooting = PHP_SAPI!="cli" ?
"<a href=\"".$this->toolbox->getTroubleshootingUrl()."\">See troubleshooting</a>." : "See ".$this->toolbox->getTroubleshootingUrl(); "<a href=\"".$this->toolbox->getTroubleshootingUrl()."\">See troubleshooting</a>." : "See ".$this->toolbox->getTroubleshootingUrl();