diff options
author | 2018-05-10 11:11:56 -0400 | |
---|---|---|
committer | 2018-11-20 09:52:50 -0500 | |
commit | 7d5bf5308aa8ad00f1f585787638d0b0c556278b (patch) | |
tree | 5a8bcdba56b53af20329458017fa3026940489f2 /Widgets/smarty/libs/sysplugins/smartyexception.php | |
parent | package-info: State given atom in error message (diff) | |
download | extensions-7d5bf5308aa8ad00f1f585787638d0b0c556278b.tar.gz extensions-7d5bf5308aa8ad00f1f585787638d0b0c556278b.tar.bz2 extensions-7d5bf5308aa8ad00f1f585787638d0b0c556278b.zip |
Update Widgets to REL_1_30
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'Widgets/smarty/libs/sysplugins/smartyexception.php')
-rw-r--r-- | Widgets/smarty/libs/sysplugins/smartyexception.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Widgets/smarty/libs/sysplugins/smartyexception.php b/Widgets/smarty/libs/sysplugins/smartyexception.php new file mode 100644 index 00000000..3da16c27 --- /dev/null +++ b/Widgets/smarty/libs/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) . ' <-- '; + } +} |