From afbf73efcdbedef384adceaeed29d607b5a19d29 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Thu, 4 Oct 2012 16:18:10 +0200 Subject: mute_runtime_errors should now work... --- stupid_template_engine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } } -- cgit v1.2.3-54-g00ecf