From 0c5a00b3f75074d390cdca2d91314261fa03e382 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 5 Jun 2012 23:17:47 +0200 Subject: [PATCH] Defined Action/Form/Page constructors as final Everything takes place in __run(), feel free to overwrite this method if you like. --- wcfsetup/install/files/lib/action/AbstractAction.class.php | 5 +++++ wcfsetup/install/files/lib/page/AbstractPage.class.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/wcfsetup/install/files/lib/action/AbstractAction.class.php b/wcfsetup/install/files/lib/action/AbstractAction.class.php index 17264b99c5..40ab568313 100644 --- a/wcfsetup/install/files/lib/action/AbstractAction.class.php +++ b/wcfsetup/install/files/lib/action/AbstractAction.class.php @@ -28,6 +28,11 @@ abstract class AbstractAction implements IAction { */ public $neededPermissions = array(); + /** + * @see wcf\form\IAction::__run() + */ + public final function __construct() { } + /** * @see wcf\action\IAction::__run() */ diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index 85c4acee2d..31ca7ca9e0 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -47,6 +47,11 @@ abstract class AbstractPage implements IPage { */ public $neededPermissions = array(); + /** + * @see wcf\form\IPage::__run() + */ + public final function __construct() { } + /** * @see wcf\page\IPage::__run() */ -- 2.20.1