Readied error pages for variable themes.
Fixed error in parsing pseudocode.
This commit is contained in:
@ -134,11 +134,12 @@ function printStaticPagePart(string $file, string $elem):string {
|
||||
/**
|
||||
* This function prints an error page.
|
||||
*
|
||||
* @param string $content The error message.
|
||||
* @param array $settings General site settings / including the CSS.
|
||||
* @param string $content The error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function printErrorPage(string $content):string {
|
||||
function printErrorPage(array $settings, string $content):string {
|
||||
|
||||
$output = '
|
||||
<!DOCTYPE html>
|
||||
@ -149,7 +150,7 @@ function printErrorPage(string $content):string {
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta charset="UTF-8" />
|
||||
<title>' . $content . '</title>
|
||||
<link rel="stylesheet" type="text/css" href="themes/default/default.css" />
|
||||
<link rel="stylesheet" type="text/css" href="themes/' . $settings['css'] . '/theme.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
Reference in New Issue
Block a user