From 170f16e2dd3a643423ea3681bf4ea42d320e1cf4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 30 Dec 2019 07:43:03 +0100 Subject: [PATCH] page: fix variable dependencies in error headers Editor checks broken in page.inc.php being called from fail() function. --- page.php | 1 + 1 file changed, 1 insertion(+) diff --git a/page.php b/page.php index fb0c4dd..e23b3e2 100644 --- a/page.php +++ b/page.php @@ -83,6 +83,7 @@ set_include_path(implode(PATH_SEPARATOR, [ DOCROOT, __DIR__ ])); function fail($error) { + global $User, $Page, $Args; http_response_code(500); if (!isset($Article)) { $Article = new ArchiveArticle(NULL); -- 2.30.0