Skip to content

Commit

Permalink
Merge pull request #2 from NateWr/i5328_service_providers
Browse files Browse the repository at this point in the history
pkp/pkp-lib#5328 Use new Repo facade for submissions and publications
  • Loading branch information
NateWr authored Jun 10, 2021
2 parents 925ebc9 + 5fde0e1 commit af723ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CrossRefExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
* @brief CrossRef/MEDLINE XML metadata export plugin
*/

use APP\facades\Repo;

import('classes.plugins.DOIPubIdExportPlugin');

// The status of the Crossref DOI.
Expand Down Expand Up @@ -115,8 +117,7 @@ function getStatusMessage($request) {
// if the failure occured on request and the message was saved
// return that message
$articleId = $request->getUserVar('articleId');
$submissionDao = DAORegistry::getDAO('SubmissionDAO'); /* @var $submissionDao SubmissionDAO */
$article = $submissionDao->getByid($articleId);
$article = Repo::submission()->get((int) $articleId);
$failedMsg = $article->getData($this->getFailedMsgSettingName());
if (!empty($failedMsg)) {
return $failedMsg;
Expand Down

0 comments on commit af723ba

Please sign in to comment.