Skip to content

Commit

Permalink
Fixed error in javascript for dynamic orcidicon display, depending on…
Browse files Browse the repository at this point in the history
… authentication
  • Loading branch information
nils-stefan-weiher committed Sep 23, 2019
1 parent e033130 commit 62555e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OrcidProfilePlugin.inc.php
Expand Up @@ -202,7 +202,7 @@ function handleTemplateDisplay($hookName, $args) {
break;
case 'frontend/pages/article.tpl':
//$templateMgr->assign('orcidIcon', $this->getIcon());
$script = 'var orcidIconSvg = $('. json_encode($this->getIcon()) .');';
$script = 'var orcidIconSvg = '. json_encode($this->getIcon()) .';';
$article = $templateMgr->getTemplateVars('article');
$authors = $article->getAuthors();
foreach ($authors as $author) {
Expand Down

0 comments on commit 62555e2

Please sign in to comment.