Skip to content

Commit

Permalink
pkp/pkp-lib#3242 Correctly fetch plugin-based template name with reso…
Browse files Browse the repository at this point in the history
…urce
  • Loading branch information
asmecher committed Jun 7, 2018
1 parent a48bc21 commit e5e3b27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/pubIds/doi/DOIPubIdPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function getPubIdMetadataFile() {
* @copydoc PKPPubIdPlugin::getPubIdAssignFile()
*/
function getPubIdAssignFile() {
return $this->getTemplatePath().'doiAssign.tpl';
return $this->getTemplateResource('doiAssign.tpl');
}

/**
Expand Down
4 changes: 1 addition & 3 deletions plugins/pubIds/urn/URNPubIdPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function addJavaScript($request, $templateMgr) {
* @copydoc PKPPubIdPlugin::getPubIdAssignFile()
*/
function getPubIdAssignFile() {
return $this->getTemplatePath().'urnAssign.tpl';
return $this->getTemplateResource('urnAssign.tpl');
}

/**
Expand Down Expand Up @@ -240,5 +240,3 @@ function _calculateCheckNo($urn) {


}

?>

0 comments on commit e5e3b27

Please sign in to comment.