* Initializes applications.
*/
protected function initApplications() {
+ // register WCF as application
+ $this->applications['wcf'] = new Application(1);
+
+ // do not init applications if within wcf
if (PACKAGE_ID == 1) return;
// start main application
* @return string
*/
public function getPath($abbreviation = 'wcf') {
- if (empty($this->applications)) {
- $this->applications = array(
- 'wcf' => new Application(1)
- );
- }
-
if (!isset($this->applications[$abbreviation])) {
$abbreviation = 'wcf';
}