From 8347a8a77b0532d97896ea922aec93b3a0a04221 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 8 Nov 2020 13:57:28 +0100 Subject: [PATCH] Remove references to non-existent js and css files in error pages phpcs-errors:0 phpunit-status:successful phpstan-errors:1 --- functions/functions.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/functions/functions.php b/functions/functions.php index 797ce6f..9ee257f 100644 --- a/functions/functions.php +++ b/functions/functions.php @@ -9,8 +9,8 @@ declare(strict_types = 1); // Set autoloader -\error_reporting(E_ALL); -\ini_set('display_errors', "1"); +# \error_reporting(E_ALL); +# \ini_set('display_errors', "1"); \spl_autoload_register("mdCsvxmlAutoloader"); \set_exception_handler("mdExceptionHandler"); \set_error_handler("mdErrorHandler", E_ALL); @@ -103,15 +103,11 @@ function mdExceptionHandler(Throwable $exception):void { $output = ' - - - - '; - if (!empty($_SESSION['dark-theme'])) $output .= ' - '; + + '; $output .= ' Error :: '; $output .= $versionName;