diff --git a/plugins/generic/htmlArticleGalley/HtmlArticleGalleyPlugin.inc.php b/plugins/generic/htmlArticleGalley/HtmlArticleGalleyPlugin.inc.php index 04bb8bc5eec..59adfbefc8f 100644 --- a/plugins/generic/htmlArticleGalley/HtmlArticleGalleyPlugin.inc.php +++ b/plugins/generic/htmlArticleGalley/HtmlArticleGalleyPlugin.inc.php @@ -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()); @@ -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; } @@ -258,5 +259,3 @@ function _handleOjsUrl($matchArray) { return $matchArray[1] . $url . $matchArray[3]; } } - -