login: optionally redirect to ?goto
[minimedit.git] / page.php
index 02886a77a04d88faac98d30f7b7570a1a23ba375..4120a01bd05b4d0a476fe88c5eebbecc51327e90 100644 (file)
--- a/page.php
+++ b/page.php
@@ -68,6 +68,7 @@ while (TRUE) {
                        @require_once './403.html';
                        exit;
                }
+               $PageAccess = $Page;
        }
 
        if (file_exists("$Page.php")) {
@@ -104,7 +105,7 @@ print "</div>\n\n";
 # execute dynamic code
 
 if ($Page) {
-       $found |= @require "./$Page.php";
+       $found |= require "./$Page.php";
 }
 
 # global html