Remove upgrade workaround from ApplicationHandler
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 09:26:25 +0000 (11:26 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 27 May 2022 09:26:25 +0000 (11:26 +0200)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php

index 77c3f00d9b05756aed8039b49465399a44d4f17b..09df70436e13bdbfb56e20a1dc150e4fc7075346 100644 (file)
@@ -77,11 +77,6 @@ class ApplicationHandler extends SingletonFactory
      */
     public function getApplicationByID($packageID)
     {
-        // work-around for update from 2.1 (out-dated cache)
-        if ($packageID == 1 && !isset($this->cache['application'][1])) {
-            $this->cache['application'][1] = new Application(1);
-        }
-
         return $this->cache['application'][$packageID] ?? null;
     }