Skip to content

Commit

Permalink
pkp#5098 Restore call order for adding app-specific data to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Oct 4, 2019
1 parent fdb4040 commit 2bdf836
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pages/workflow/PKPWorkflowHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ function index($args, $request) {
'workflowStages' => $workflowStages,
]);

$this->setupIndex($request);

$templateMgr->display('workflow/workflow.tpl');
}

Expand Down Expand Up @@ -623,6 +625,14 @@ function setupTemplate($request) {
AppLocale::requireComponents(LOCALE_COMPONENT_PKP_ADMIN, LOCALE_COMPONENT_APP_ADMIN, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_APP_SUBMISSION, LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_PKP_GRID, LOCALE_COMPONENT_PKP_EDITOR);
}

/**
* Placeholder method to be overridden by apps in order to add
* app-specific data to the template
*
* @param $request Request
*/
public function setupIndex($request) {}

//
// Protected helper methods
//
Expand Down

0 comments on commit 2bdf836

Please sign in to comment.