From 9d47b1e06984a4164c5ab941ad75163366e6f238 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 6 Jul 2021 11:21:54 +0200 Subject: [PATCH] Use `getActiveRequest()` method in favor of directly accessing the class property --- .../files/lib/system/request/RequestHandler.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 53c46655be..5f3308fb99 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -79,8 +79,8 @@ class RequestHandler extends SingletonFactory if ( $this->isACPRequest() && ENABLE_ENTERPRISE_MODE - && \defined($this->activeRequest->getClassName() . '::BLACKLISTED_IN_ENTERPRISE_MODE') - && \constant($this->activeRequest->getClassName() . '::BLACKLISTED_IN_ENTERPRISE_MODE') + && \defined($this->getActiveRequest()->getClassName() . '::BLACKLISTED_IN_ENTERPRISE_MODE') + && \constant($this->getActiveRequest()->getClassName() . '::BLACKLISTED_IN_ENTERPRISE_MODE') && !WCF::getUser()->hasOwnerAccess() ) { throw new IllegalLinkException(); @@ -90,7 +90,7 @@ class RequestHandler extends SingletonFactory if (!$this->isACPRequest() && \defined('OFFLINE') && OFFLINE) { if ( !WCF::getSession()->getPermission('admin.general.canViewPageDuringOfflineMode') - && !$this->activeRequest->isAvailableDuringOfflineMode() + && !$this->getActiveRequest()->isAvailableDuringOfflineMode() ) { if ( isset($_SERVER['HTTP_X_REQUESTED_WITH']) @@ -116,7 +116,7 @@ class RequestHandler extends SingletonFactory } // start request - $this->activeRequest->execute(); + $this->getActiveRequest()->execute(); } catch (NamedUserException $e) { $e->show(); -- 2.20.1