projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f75adf
)
Fix logic in mod/hovercard
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 7 Jan 2019 18:24:53 +0000
(13:24 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Mon, 21 Jan 2019 16:12:49 +0000
(11:12 -0500)
mod/hovercard.php
patch
|
blob
|
history
diff --git
a/mod/hovercard.php
b/mod/hovercard.php
index 047502fc344a6545cab7d3d76ee175eefd07856d..603c617ca4874107efb6833db9585405371f1570 100644
(file)
--- 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)) {