Fixes a problem with unrecognized controllers with AJAX* prefix
authorjoshuaruesweg <ruesweg@woltlab.com>
Thu, 20 Feb 2020 11:33:19 +0000 (12:33 +0100)
committerjoshuaruesweg <ruesweg@woltlab.com>
Thu, 20 Feb 2020 11:33:19 +0000 (12:33 +0100)
wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index 71a72f68c501ed04ff5dabff2c950a2ffe950cc6..241c179e7929ce3840e3be25bc1bb205070e1345 100644 (file)
@@ -83,6 +83,8 @@ class ControllerMap extends SingletonFactory {
                        if ($controller === 'AjaxProxy') $controller = 'AJAXProxy';
                        else if ($controller === 'AjaxUpload') $controller = 'AJAXUpload';
                        else if ($controller === 'AjaxInvoke') $controller = 'AJAXInvoke';
+                       else if ($controller === 'AjaxFileUpload') $controller = 'AJAXFileUpload';
+                       else if ($controller === 'AjaxFileDelete') $controller = 'AJAXFileDelete';
                        
                        // work-around for package installation during the upgrade 2.1 -> 3.0
                        if ($isAcpRequest && $controller === 'InstallPackage') $application = 'wcf';