aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-09-17 19:38:40 -0700
committerzotlabs <mike@macgirvin.com>2018-09-17 19:38:40 -0700
commitdfdf11d461d9c72fa4fb54fd28949af2a90209b3 (patch)
tree8b3cddfb1f235c60125763066f13c3822c0ac530 /include/text.php
parentcc5ef57843f4012f7319a0ffd687fe26950a7790 (diff)
parentc4c1b1f5a2ab90873bf1eef31ed794d94fdd6077 (diff)
downloadvolse-hubzilla-dfdf11d461d9c72fa4fb54fd28949af2a90209b3.tar.gz
volse-hubzilla-dfdf11d461d9c72fa4fb54fd28949af2a90209b3.tar.bz2
volse-hubzilla-dfdf11d461d9c72fa4fb54fd28949af2a90209b3.zip
Merge branch 'dev'
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 8a07dc113..4b5442985 100644
--- a/include/text.php
+++ b/include/text.php
@@ -37,7 +37,13 @@ function replace_macros($s, $r) {
call_hooks('replace_macros', $arr);
$t = App::template_engine();
- $output = $t->replace_macros($arr['template'], $arr['params']);
+
+ try {
+ $output = $t->replace_macros($arr['template'], $arr['params']);
+ } catch (Exception $e) {
+ logger("Unable to render template: ",$e->getMessage());
+ $output = "<h3>ERROR: there was an error creating the output.</h3>";
+ }
return $output;
}