Commit fba4db1e authored by Leigh Stoller's avatar Leigh Stoller

Minor change to PAGEARGERROR().

parent 3cc33249
......@@ -161,8 +161,13 @@ function FORMERROR($field) {
#
# A page argument error.
#
function PAGEARGERROR() {
USERERROR("Invalid page arguments: " . $_SERVER['REQUEST_URI'], 1);
function PAGEARGERROR($msg = 0) {
$default = "Invalid page arguments: " . $_SERVER['REQUEST_URI'];
if ($msg) {
$default = "$default<br><br>$msg";
}
USERERROR($default, 1);
}
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment