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);
|
||||
|
||||
// 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 = '<!DOCTYPE html>
|
||||
<html id="errorPage">
|
||||
<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 http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<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="css/errorPage.css" />';
|
||||
if (!empty($_SESSION['dark-theme'])) $output .= '
|
||||
<link rel="stylesheet" type="text/css" href="css/dark-theme.css?2020013517" />';
|
||||
<link rel="stylesheet" type="text/css" href="assets/css/csvxml.min.css" />
|
||||
<link rel="shortcut icon" sizes="128x128" href="assets/img/mdlogo-csvxml.svg" />';
|
||||
$output .= '
|
||||
<title>Error :: ';
|
||||
$output .= $versionName;
|
||||
|
Loading…
Reference in New Issue
Block a user