Make the evaluation check independent of local variables
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Jul 2021 09:30:33 +0000 (11:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Jul 2021 09:30:33 +0000 (11:30 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 147a9a9f214eb7a234831248de730836f0786f7a..78a0f8c15f61cc68418ec74f7b5800da86cd48c3 100644 (file)
@@ -211,7 +211,7 @@ class RequestHandler extends SingletonFactory
             );
 
             // check if the controller matches an app that has an expired evaluation date
-            [$abbreviation] = \explode('\\', $classData['className'], 2);
+            [$abbreviation] = \explode('\\', $this->getActiveRequest()->getClassName(), 2);
             if ($abbreviation !== 'wcf') {
                 $applicationObject = ApplicationHandler::getInstance()->getApplication($abbreviation);
                 $endDate = WCF::getApplicationObject($applicationObject)->getEvaluationEndDate();