aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rwxr-xr-xinclude/text.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 54626a772..3d15a5c6b 100755
--- a/include/text.php
+++ b/include/text.php
@@ -15,8 +15,11 @@ require_once("include/friendica_smarty.php");
function replace_macros($s,$r) {
$a = get_app();
+ $arr = array('template' => $s, 'params' => $r);
+ call_hooks('replace_macros', $arr);
+
$t = $a->template_engine();
- $output = $t->replace_macros($s,$r);
+ $output = $t->replace_macros($arr['template'],$arr['params']);
return $output;
}