From b52b33845bb2ab7272d50e947e90fc2f00044418 Mon Sep 17 00:00:00 2001 From: GaziYucel Date: Thu, 28 Nov 2024 11:51:24 +0100 Subject: [PATCH] Initial commit --- pages/article/ArticleHandler.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pages/article/ArticleHandler.php b/pages/article/ArticleHandler.php index a40ad52ec32..cbd5c37ccf6 100644 --- a/pages/article/ArticleHandler.php +++ b/pages/article/ArticleHandler.php @@ -3,8 +3,8 @@ /** * @file pages/article/ArticleHandler.php * - * Copyright (c) 2014-2021 Simon Fraser University - * Copyright (c) 2003-2021 John Willinsky + * Copyright (c) 2014-2024 Simon Fraser University + * Copyright (c) 2003-2024 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class ArticleHandler @@ -28,7 +28,6 @@ use APP\submission\Submission; use APP\template\TemplateManager; use Firebase\JWT\Key; -use PKP\citation\CitationDAO; use PKP\config\Config; use PKP\core\PKPApplication; use PKP\core\PKPJwt as JWT; @@ -291,10 +290,8 @@ public function view($args, $request) // Citations if ($publication->getData('citationsRaw')) { - $citationDao = DAORegistry::getDAO('CitationDAO'); /** @var CitationDAO $citationDao */ - $parsedCitations = $citationDao->getByPublicationId($publication->getId()); $templateMgr->assign([ - 'parsedCitations' => $parsedCitations->toArray(), + 'parsedCitations' => Repo::citation()->getByPublicationId($publication->getId()), ]); }