From: Tim Düsterhus Date: Tue, 6 Jul 2021 09:21:54 +0000 (+0200) Subject: Use `getActiveRequest()` method in favor of directly accessing the class property X-Git-Tag: 5.5.0_Alpha_1~563 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d47b1e06984a4164c5ab941ad75163366e6f238;p=GitHub%2FWoltLab%2FWCF.git Use `getActiveRequest()` method in favor of directly accessing the class property --- 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();