Readied error pages for variable themes.
Fixed error in parsing pseudocode.
This commit is contained in:
@ -13,12 +13,12 @@ require_once __DIR__ . "/inc/functions.php";
|
||||
// Check validity of request.
|
||||
|
||||
if (!isset($_GET['args']) || !isset($_GET['area'])) {
|
||||
echo printErrorPage("File does not exist.");
|
||||
echo printErrorPage($settings, "File does not exist.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!in_array($_GET['area'], ['events', 'exhibitions'])) {
|
||||
echo printErrorPage("Using a disallowed value for area.");
|
||||
echo printErrorPage($settings, "Using a disallowed value for area.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user