protected $evaluationPluginStoreID = 0;
/**
- * true, if current application is active (directly invoked, not dependent)
- * @var bool
+ * @deprecated 5.5 - This value is unused and will always be 'false'. The 'active' status is determined live.
*/
protected $isActiveApplication = false;
}
$this->packageID = $application->packageID;
-
- $this->rebuildActiveApplication();
}
/**
*/
public function isActiveApplication()
{
- return $this->isActiveApplication;
+ return $this->packageID == ApplicationHandler::getInstance()->getActiveApplication()->packageID;
}
/**
/**
* @since 5.2
+ * @deprecated 5.5 - This function is a noop. The 'active' status is determined live.
*/
public function rebuildActiveApplication()
{
- $this->isActiveApplication = ($this->packageID == ApplicationHandler::getInstance()->getActiveApplication()->packageID);
}
/**
/**
* @since 5.2
+ * @deprecated 5.5 - This function is a noop. The 'active' status is determined live.
*/
public function rebuildActiveApplication()
{
- /** @var AbstractApplication $application */
- foreach ($this->cache['application'] as $application) {
- if ($application->getPackage()->package === 'com.woltlab.wcf') {
- continue;
- }
-
- $appObject = WCF::getApplicationObject($application);
- if ($appObject instanceof AbstractApplication) {
- $appObject->rebuildActiveApplication();
- }
- }
}
/**