Skip to content

Commit

Permalink
pkp#2708 Ensure constants are loaded before trying to pass them
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Aug 28, 2017
1 parent cdb54c3 commit b7238bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ public function getConfig() {
$config['csrfToken'] = $request->getSession()->getCSRFToken();

// Provide required constants
import('lib.pkp.classes.submission.reviewRound.ReviewRound');
import('lib.pkp.classes.submission.reviewAssignment.ReviewAssignment');
$config['_constants'] = array(
'WORKFLOW_STAGE_ID_SUBMISSION' => WORKFLOW_STAGE_ID_SUBMISSION,
'WORKFLOW_STAGE_ID_INTERNAL_REVIEW' => WORKFLOW_STAGE_ID_INTERNAL_REVIEW,
Expand Down

0 comments on commit b7238bb

Please sign in to comment.