From fa96b8157bdad181c6cc48b5783389f10e4eb95e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 13 Jul 2021 16:02:33 +0200 Subject: [PATCH] Pass through the return value of parent::__run() in controllers --- .../files/lib/acp/form/AbstractCategoryAddForm.class.php | 2 +- wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php | 2 +- .../files/lib/acp/page/AbstractCategoryListPage.class.php | 2 +- .../install/files/lib/action/AJAXFileDeleteAction.class.php | 2 +- .../install/files/lib/action/AJAXFileUploadAction.class.php | 2 +- wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php index ea4d12db31..d7b1feaedd 100644 --- a/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/AbstractCategoryAddForm.class.php @@ -136,7 +136,7 @@ abstract class AbstractCategoryAddForm extends AbstractForm $this->listController = \str_replace(['AddForm', 'EditForm'], 'List', $className); } - parent::__run(); + return parent::__run(); } /** diff --git a/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php b/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php index c3476d6d97..d91d35fdc7 100644 --- a/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/RescueModeForm.class.php @@ -78,7 +78,7 @@ class RescueModeForm extends AbstractCaptchaForm exit; } - parent::__run(); + return parent::__run(); } /** diff --git a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php index 9782a7610d..540a2efe83 100644 --- a/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/AbstractCategoryListPage.class.php @@ -91,7 +91,7 @@ abstract class AbstractCategoryListPage extends AbstractPage $this->editController = \str_replace('ListPage', 'Edit', $className); } - parent::__run(); + return parent::__run(); } /** diff --git a/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php b/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php index 2420aad835..6ffe095fbd 100644 --- a/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXFileDeleteAction.class.php @@ -50,7 +50,7 @@ class AJAXFileDeleteAction extends AbstractSecureAction public function __run() { try { - parent::__run(); + return parent::__run(); } catch (\Throwable $e) { if ($e instanceof AJAXException) { throw $e; diff --git a/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php b/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php index 1da6b01e12..7fa99ac575 100644 --- a/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXFileUploadAction.class.php @@ -41,7 +41,7 @@ class AJAXFileUploadAction extends AbstractSecureAction public function __run() { try { - parent::__run(); + return parent::__run(); } catch (\Throwable $e) { if ($e instanceof AJAXException) { throw $e; diff --git a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php index 8db8361c88..e493498972 100644 --- a/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php +++ b/wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php @@ -62,7 +62,7 @@ class AJAXInvokeAction extends AbstractSecureAction public function __run() { try { - parent::__run(); + return parent::__run(); } catch (\Throwable $e) { if ($e instanceof AJAXException) { throw $e; -- 2.20.1