Remove references to non-existent js and css files in error pages
phpcs-errors:0 phpunit-status:successful phpstan-errors:1
This commit is contained in:
parent
5af76abcb7
commit
8347a8a77b
|
@ -9,8 +9,8 @@
|
||||||
declare(strict_types = 1);
|
declare(strict_types = 1);
|
||||||
|
|
||||||
// Set autoloader
|
// Set autoloader
|
||||||
\error_reporting(E_ALL);
|
# \error_reporting(E_ALL);
|
||||||
\ini_set('display_errors', "1");
|
# \ini_set('display_errors', "1");
|
||||||
\spl_autoload_register("mdCsvxmlAutoloader");
|
\spl_autoload_register("mdCsvxmlAutoloader");
|
||||||
\set_exception_handler("mdExceptionHandler");
|
\set_exception_handler("mdExceptionHandler");
|
||||||
\set_error_handler("mdErrorHandler", E_ALL);
|
\set_error_handler("mdErrorHandler", E_ALL);
|
||||||
|
@ -103,15 +103,11 @@ function mdExceptionHandler(Throwable $exception):void {
|
||||||
$output = '<!DOCTYPE html>
|
$output = '<!DOCTYPE html>
|
||||||
<html id="errorPage">
|
<html id="errorPage">
|
||||||
<head>
|
<head>
|
||||||
<script src="js/loadCaches.min.js?2020013517" type="text/javascript" async></script>
|
|
||||||
<script src="js/applyCaches.min.js?2020013517" type="text/javascript"></script>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||||
<link rel="manifest" href="./manifest.webmanifest" />
|
<link rel="manifest" href="./manifest.webmanifest" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/main.min.css?2020013517" />
|
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/errorPage.css" />';
|
<link rel="shortcut icon" sizes="128x128" href="assets/img/mdlogo-csvxml.svg" />';
|
||||||
if (!empty($_SESSION['dark-theme'])) $output .= '
|
|
||||||
<link rel="stylesheet" type="text/css" href="css/dark-theme.css?2020013517" />';
|
|
||||||
$output .= '
|
$output .= '
|
||||||
<title>Error :: ';
|
<title>Error :: ';
|
||||||
$output .= $versionName;
|
$output .= $versionName;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user