Skip to content

Commit

Permalink
pkp/pkp-lib#3691 Move default html galley styles from hook to method
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Jan 31, 2019
1 parent 8fe4631 commit 6e9c637
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ function _getHTMLContents($request, $galley) {
$contents
);

$templateMgr = TemplateManager::getManager($request);
$contents = $templateMgr->loadHtmlGalleyStyles($contents, $embeddableFiles);

// Perform variable replacement for journal, issue, site info
$issueDao = DAORegistry::getDAO('IssueDAO');
$issue = $issueDao->getByArticleId($galley->getSubmissionId());
Expand All @@ -180,8 +183,6 @@ function _getHTMLContents($request, $galley) {
foreach ($paramArray as $key => $value) {
$contents = str_replace('{$' . $key . '}', $value, $contents);
}

HookRegistry::call('HtmlArticleGalleyPlugin::htmlGalleyContent', array($galley, &$contents, $submissionFile, $embeddableFiles));

return $contents;
}
Expand Down Expand Up @@ -258,5 +259,3 @@ function _handleOjsUrl($matchArray) {
return $matchArray[1] . $url . $matchArray[3];
}
}


0 comments on commit 6e9c637

Please sign in to comment.