X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhovercard.php;h=603c617ca4874107efb6833db9585405371f1570;hb=41663c7592abe55a958632c3a48265e0a8544d2b;hp=047502fc344a6545cab7d3d76ee175eefd07856d;hpb=dbc6eb5422b81c95d6e1eea63c8ace794ccd2039;p=friendica.git 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)) {