use wcf\data\package\PackageEditor;
use wcf\data\page\Page;
use wcf\data\page\PageCache;
+use wcf\page\CmsPage;
use wcf\system\application\ApplicationHandler;
use wcf\system\application\IApplication;
use wcf\system\box\BoxHandler;
* @return Page|null
*/
public static function getActivePage() {
+ if (self::getActiveRequest()->getClassName() === CmsPage::class) {
+ $metaData = self::getActiveRequest()->getMetaData();
+ return PageCache::getInstance()->getPage($metaData['cms']['pageID']);
+ }
+
return PageCache::getInstance()->getPageByController(self::getActiveRequest()->getClassName());
}