From 5e19b1bd7ad6123527fcd4945b1ce6a520e48d9f Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Tue, 14 Feb 2023 15:12:02 +0100 Subject: [PATCH] Updated plugin to use 1.3.1 of WebComponent. Should fix downstream bugs with nginx. --- src/FuzeWorks/Administration/AdminPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FuzeWorks/Administration/AdminPlugin.php b/src/FuzeWorks/Administration/AdminPlugin.php index 7bc3ad8..84bd377 100755 --- a/src/FuzeWorks/Administration/AdminPlugin.php +++ b/src/FuzeWorks/Administration/AdminPlugin.php @@ -187,7 +187,7 @@ class AdminPlugin implements iPluginHeader Events::addListener([$this, 'layoutLoadEventListener'], 'layoutLoadEvent', Priority::HIGH); Events::addListener([$this, 'verifyViewPermissions'], 'routerCallViewEvent', Priority::HIGH); Events::addListener([$this, 'logViewNameAndIcon'], 'routerCallViewEvent', Priority::NORMAL); - + if (class_exists("\FuzeWorks\Async\Tasks")) { // Mark async to be loaded @@ -208,7 +208,7 @@ class AdminPlugin implements iPluginHeader $this->session = $this->authPlugin->sessions->start(); if ($this->session->user->id === "0") { - $output->setHeader("Location: " . $this->authPlugin->getAuthenticationURL() . "/login?location=" . $this->getAdminURL()); + $output->setLocation($this->authPlugin->getAuthenticationURL() . "/login?location=" . $this->getAdminURL()); return ""; }