Fixes anchor links
authorAlexander Ebert <ebert@woltlab.com>
Wed, 8 Feb 2012 13:39:15 +0000 (14:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 8 Feb 2012 13:39:15 +0000 (14:39 +0100)
wcfsetup/install/files/lib/system/WCF.class.php

index 50855c8a8b116584e685deeb14b122c2a0f62de6..ec05ad8e171d639ae37713b3b8dba9c01d741418 100644 (file)
@@ -396,6 +396,10 @@ class WCF {
         * 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
@@ -612,12 +616,6 @@ class WCF {
         * @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';
                }