summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-10-04 16:18:10 +0200
committerKevin Chabowski <kevin@kch42.de>2012-10-04 16:18:10 +0200
commitafbf73efcdbedef384adceaeed29d607b5a19d29 (patch)
treeae6b03423474cda90f64dc44b9093bb43b696f7b
parent2a40eb87c8c679a25ddb42587a1934e02312cb4a (diff)
downloadste-afbf73efcdbedef384adceaeed29d607b5a19d29.tar.gz
ste-afbf73efcdbedef384adceaeed29d607b5a19d29.tar.bz2
ste-afbf73efcdbedef384adceaeed29d607b5a19d29.zip
mute_runtime_errors should now work...
-rw-r--r--stupid_template_engine.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index 81a7688..aadbb86 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -1122,7 +1122,8 @@ class STECore
}
catch(RuntimeError $e)
{
- return "RuntimeError occurred on tag '$name': " . $e->getMessage();
+ if(!$this->mute_runtime_errors)
+ return "RuntimeError occurred on tag '$name': " . $e->getMessage();
}
}