From: Alexander Ebert Date: Wed, 19 Oct 2016 10:24:39 +0000 (+0200) Subject: Allow updating of page handler X-Git-Tag: 3.0.0_Beta_3~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1003148f405db9db7a0b8b9158edf007189fae51;p=GitHub%2FWoltLab%2FWCF.git Allow updating of page handler --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php index ef0145e799..db2c18ab55 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/PagePackageInstallationPlugin.class.php @@ -252,9 +252,12 @@ class PagePackageInstallationPlugin extends AbstractXMLPackageInstallationPlugin /** @var Page $page */ if (!empty($row)) { - // allow only updating of controller, everything else would overwrite user modifications + // allow only updating of controller and handler, everything else would overwrite user modifications if (!empty($data['controller'])) { - $page = parent::import($row, ['controller' => $data['controller']]); + $page = parent::import($row, [ + 'controller' => $data['controller'], + 'handler' => $data['handler'] + ]); } else { $baseClass = call_user_func([$this->className, 'getBaseClass']);