// register WCF as application
self::$applications['wcf'] = ApplicationHandler::getInstance()->getWCF();
+ if (PACKAGE_ID == 1) {
+ return;
+ }
+
// start main application
$application = ApplicationHandler::getInstance()->getActiveApplication();
$loadedApplications[] = $this->loadApplication($application);
* @return wcf\data\application\Application
*/
public function getActiveApplication() {
- return $this->cache['application'][PACKAGE_ID];
+ // work-around during WCFSetup
+ if (isset($this->cache['application'][PACKAGE_ID])) {
+ return $this->cache['application'][PACKAGE_ID];
+ }
+
+ return $this->getWCF();
}
/**