Browse Source

Fix logic in mod/hovercard

pull/6482/head
Hypolite Petovan 2 years ago
parent
commit
e95ad45de5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      mod/hovercard.php

+ 4
- 2
mod/hovercard.php View File

@ -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)) {


Loading…
Cancel
Save