Skip to content

Commit af723ba

Browse files
authored
Merge pull request #2 from NateWr/i5328_service_providers
pkp/pkp-lib#5328 Use new Repo facade for submissions and publications
2 parents 925ebc9 + 5fde0e1 commit af723ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CrossRefExportPlugin.inc.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* @brief CrossRef/MEDLINE XML metadata export plugin
1414
*/
1515

16+
use APP\facades\Repo;
17+
1618
import('classes.plugins.DOIPubIdExportPlugin');
1719

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

0 commit comments

Comments
 (0)