Skip to content

Commit

Permalink
pkp#10823 Standardized remaining calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jan 20, 2025
1 parent 5e782c4 commit e245848
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
4 changes: 2 additions & 2 deletions controllers/informationCenter/InformationCenterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions controllers/modals/documentLibrary/DocumentLibraryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions controllers/modals/publish/PublishHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions controllers/wizard/fileUpload/FileUploadWizardHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions pages/admin/AdminHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -141,7 +141,7 @@ public function initialize($request)
]);
}

return parent::initialize($request);
return parent::initialize($request, $args);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions pages/management/ManagementHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit e245848

Please sign in to comment.