$metaData
);
- // check if the controller matches an app that has an expired evaluation date
- [$abbreviation] = \explode('\\', $this->getActiveRequest()->getClassName(), 2);
- if ($abbreviation !== 'wcf') {
- $applicationObject = ApplicationHandler::getInstance()->getApplication($abbreviation);
- $endDate = WCF::getApplicationObject($applicationObject)->getEvaluationEndDate();
- if ($endDate && $endDate < TIME_NOW) {
- $package = $applicationObject->getPackage();
-
- $pluginStoreFileID = WCF::getApplicationObject($applicationObject)->getEvaluationPluginStoreID();
- $isWoltLab = false;
- if ($pluginStoreFileID === 0 && \strpos($package->package, 'com.woltlab.') === 0) {
- $isWoltLab = true;
- }
-
- throw new NamedUserException(WCF::getLanguage()->getDynamicVariable(
- 'wcf.acp.package.evaluation.expired',
- [
- 'packageName' => $package->getName(),
- 'pluginStoreFileID' => $pluginStoreFileID,
- 'isWoltLab' => $isWoltLab,
- ]
- ));
- }
- }
+ $this->checkAppEvaluation();
if (!$this->isACPRequest()) {
// determine if current request matches the landing page
}
}
+ /**
+ * @since 5.5
+ */
+ protected function checkAppEvaluation()
+ {
+ // check if the controller matches an app that has an expired evaluation date
+ [$abbreviation] = \explode('\\', $this->getActiveRequest()->getClassName(), 2);
+ if ($abbreviation !== 'wcf') {
+ $applicationObject = ApplicationHandler::getInstance()->getApplication($abbreviation);
+ $endDate = WCF::getApplicationObject($applicationObject)->getEvaluationEndDate();
+ if ($endDate && $endDate < TIME_NOW) {
+ $package = $applicationObject->getPackage();
+
+ $pluginStoreFileID = WCF::getApplicationObject($applicationObject)->getEvaluationPluginStoreID();
+ $isWoltLab = false;
+ if ($pluginStoreFileID === 0 && \strpos($package->package, 'com.woltlab.') === 0) {
+ $isWoltLab = true;
+ }
+
+ throw new NamedUserException(WCF::getLanguage()->getDynamicVariable(
+ 'wcf.acp.package.evaluation.expired',
+ [
+ 'packageName' => $package->getName(),
+ 'pluginStoreFileID' => $pluginStoreFileID,
+ 'isWoltLab' => $isWoltLab,
+ ]
+ ));
+ }
+ }
+ }
+
/**
* Redirects to the actual URL, e.g. controller has been aliased or mistyped (boardlist instead of board-list).
*