Add returnto to anonymous edit denied message.

This commit is contained in:
Starbeamrainbowlabs 2015-12-05 17:26:22 +00:00
parent b139f204b4
commit c6442565bf
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ register_module([
else
{
http_response_code(404);
exit(page_renderer::render_main("404 - $env->page", "<p>The page <code>$env->page</code> does not exist, but you do not have permission to create it.</p><p>If you haven't already, perhaps you should try <a href='index.php?action=login'>logging in</a>.</p>"));
exit(page_renderer::render_main("404 - $env->page", "<p>The page <code>$env->page</code> does not exist, but you do not have permission to create it.</p><p>If you haven't already, perhaps you should try <a href='index.php?action=login&returnto=" . rawurlencode($_SERVER["REQUEST_URI"]) . "'>logging in</a>.</p>"));
}
}