Readied error pages for variable themes.
Fixed error in parsing pseudocode.
This commit is contained in:
@ -12,7 +12,7 @@ require_once __DIR__ . "/inc/functions.php";
|
||||
// Check validity of request.
|
||||
|
||||
if (isset($_GET['id']) and !file_exists(__DIR__ . "/data/static/" . $_GET['id'] . ".json")) {
|
||||
echo printErrorPage("File does not exist.");
|
||||
echo printErrorPage($settings, "File does not exist.");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -35,7 +35,7 @@ else if (file_exists(__DIR__ . "/data/static/" . $settings['startPage'] . ".json
|
||||
$id = $settings['startPage'];
|
||||
}
|
||||
else {
|
||||
echo printErrorPage("This file does not exist.");
|
||||
echo printErrorPage($settings, "This file does not exist.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user