From e95ad45de51fba3ede0b2c5a804cb76f4f4069a9 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 7 Jan 2019 13:24:53 -0500 Subject: [PATCH] Fix logic in mod/hovercard --- mod/hovercard.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/hovercard.php b/mod/hovercard.php index 047502fc34..603c617ca4 100644 --- a/mod/hovercard.php +++ b/mod/hovercard.php @@ -135,8 +135,10 @@ function get_template_content($template, $root = '') { // We load the whole template system to get the filename. // Maybe we can do it a little bit smarter if I get time. - $t = Renderer::getMarkupTemplate($template, $root); - $filename = $t->filename; + $templateEngine = Renderer::getTemplateEngine(); + $template = $templateEngine->getTemplateFile($template, $root); + + $filename = $template->filename; // Get the content of the template file if (file_exists($filename)) {