aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/libs/sysplugins/smartyexception.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/libs/sysplugins/smartyexception.php')
-rw-r--r--vendor/smarty/smarty/libs/sysplugins/smartyexception.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/smarty/smarty/libs/sysplugins/smartyexception.php b/vendor/smarty/smarty/libs/sysplugins/smartyexception.php
new file mode 100644
index 000000000..431d8f8e9
--- /dev/null
+++ b/vendor/smarty/smarty/libs/sysplugins/smartyexception.php
@@ -0,0 +1,16 @@
+<?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) . ' <-- ';
+ }
+}