commit 3484a39a8d676b6c1fed8b293061753359bb9bb6 parent 4c346829834c8cdaa67d6953fa2f08b591cd0a8d Author: Marcel <MTRNord@users.noreply.github.com> Date: Sat, 31 Oct 2015 17:50:54 +0100 Create smartyexception.php Diffstat:
| A | libs/smarty/sysplugins/smartyexception.php | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/libs/smarty/sysplugins/smartyexception.php b/libs/smarty/sysplugins/smartyexception.php @@ -0,0 +1,15 @@ +<?php +/** + * Smarty exception class + * + * @package Smarty + */ +class SmartyException extends Exception +{ + public static $escape = false; + + public function __toString() + { + return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- '; + } +}