From e245848ec6a1520a370892330a25af1bee9a1122 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Sun, 19 Jan 2025 11:09:40 +0300 Subject: [PATCH] pkp/pkp-lib#10823 Standardized remaining calls --- .../informationCenter/FileInformationCenterHandler.php | 4 ++-- controllers/informationCenter/InformationCenterHandler.php | 4 ++-- controllers/modals/documentLibrary/DocumentLibraryHandler.php | 4 ++-- controllers/modals/publish/PublishHandler.php | 4 ++-- controllers/wizard/fileUpload/FileUploadWizardHandler.php | 4 ++-- pages/admin/AdminHandler.php | 4 ++-- pages/management/ManagementHandler.php | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/controllers/informationCenter/FileInformationCenterHandler.php b/controllers/informationCenter/FileInformationCenterHandler.php index c3494a853db..2bf2ca0a194 100644 --- a/controllers/informationCenter/FileInformationCenterHandler.php +++ b/controllers/informationCenter/FileInformationCenterHandler.php @@ -68,9 +68,9 @@ public function authorize($request, &$args, $roleAssignments) /** * @copydoc InformationCenterHandler::initialize */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); $this->_stageId = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_WORKFLOW_STAGE); $this->submissionFile = Repo::submissionFile()->get($request->getUserVar('submissionFileId')); diff --git a/controllers/informationCenter/InformationCenterHandler.php b/controllers/informationCenter/InformationCenterHandler.php index d8b3ecb4c70..8539d3db155 100644 --- a/controllers/informationCenter/InformationCenterHandler.php +++ b/controllers/informationCenter/InformationCenterHandler.php @@ -74,9 +74,9 @@ public function authorize($request, &$args, $roleAssignments) * * @param PKPRequest $request */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); // Fetch the submission and file to display information about $this->_submission = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_SUBMISSION); diff --git a/controllers/modals/documentLibrary/DocumentLibraryHandler.php b/controllers/modals/documentLibrary/DocumentLibraryHandler.php index 98e2a8989aa..4dd38e4a25a 100644 --- a/controllers/modals/documentLibrary/DocumentLibraryHandler.php +++ b/controllers/modals/documentLibrary/DocumentLibraryHandler.php @@ -49,9 +49,9 @@ public function __construct() /** * @copydoc PKPHandler::initialize() */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); $this->_submission = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_SUBMISSION); $this->setupTemplate($request); diff --git a/controllers/modals/publish/PublishHandler.php b/controllers/modals/publish/PublishHandler.php index 1cf2c2e8a23..a758a62cfd2 100644 --- a/controllers/modals/publish/PublishHandler.php +++ b/controllers/modals/publish/PublishHandler.php @@ -57,9 +57,9 @@ public function __construct() /** * @copydoc PKPHandler::initialize() */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); $this->submission = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_SUBMISSION); $this->publication = $this->getAuthorizedContextObject(Application::ASSOC_TYPE_PUBLICATION); $this->setupTemplate($request); diff --git a/controllers/wizard/fileUpload/FileUploadWizardHandler.php b/controllers/wizard/fileUpload/FileUploadWizardHandler.php index 568a178070a..1b05dff9fa3 100644 --- a/controllers/wizard/fileUpload/FileUploadWizardHandler.php +++ b/controllers/wizard/fileUpload/FileUploadWizardHandler.php @@ -193,9 +193,9 @@ public function authorize($request, &$args, $roleAssignments) /** * @copydoc PKPHandler::initialize() */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); // Configure the wizard with the authorized submission and file stage. // Validated in authorize. $this->_fileStage = (int)$request->getUserVar('fileStage'); diff --git a/pages/admin/AdminHandler.php b/pages/admin/AdminHandler.php index 66603b0cba6..61ae46187cf 100644 --- a/pages/admin/AdminHandler.php +++ b/pages/admin/AdminHandler.php @@ -107,7 +107,7 @@ public function authorize($request, &$args, $roleAssignments) /** * @copydoc PKPHandler::initialize() */ - public function initialize($request) + public function initialize($request, $args = null) { $templateMgr = TemplateManager::getManager($request); @@ -141,7 +141,7 @@ public function initialize($request) ]); } - return parent::initialize($request); + return parent::initialize($request, $args); } /** diff --git a/pages/management/ManagementHandler.php b/pages/management/ManagementHandler.php index f9a0de602e8..395f50ad212 100644 --- a/pages/management/ManagementHandler.php +++ b/pages/management/ManagementHandler.php @@ -72,9 +72,9 @@ class ManagementHandler extends Handler /** * @see PKPHandler::initialize() */ - public function initialize($request) + public function initialize($request, $args = null) { - parent::initialize($request); + parent::initialize($request, $args); $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('pageComponent', 'SettingsPage');