Fixed for ACP upgrade
authorAlexander Ebert <ebert@woltlab.com>
Wed, 14 Dec 2016 13:04:06 +0000 (14:04 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 14 Dec 2016 13:04:06 +0000 (14:04 +0100)
wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index cb9a45afbf884ba1ff1124fbc62692e8d1ebc150..6c7dbc9df55d3b1df2d54963e0be8023ab14048b 100644 (file)
@@ -66,13 +66,16 @@ class ControllerMap extends SingletonFactory {
                        throw new SystemException("Malformed controller name '" . $controller . "'");
                }
                
+               // work-around for package installation during upgrade 2.1 -> 3.0
+               if ($controller === 'InstallPackage') $application = 'wcf';
+               
                $classData = $this->getLegacyClassData($application, $controller, $isAcpRequest);
                if ($classData === null) {
                        $parts = explode('-', $controller);
                        $parts = array_map('ucfirst', $parts);
                        $controller = implode('', $parts);
                        
-                       // work-around for upgrade path 2.1 -> 2.2
+                       // work-around for upgrade path 2.1 -> 3.0
                        if ($controller === 'AjaxProxy') $controller = 'AJAXProxy';
                        
                        $classData = $this->getClassData($application, $controller, $isAcpRequest, 'page');