]> git.mxchange.org Git - friendica.git/blobdiff - vendor/smarty/smarty/libs/sysplugins/smartyexception.php
Add Smarty to Composer
[friendica.git] / vendor / smarty / smarty / libs / sysplugins / smartyexception.php
diff --git a/vendor/smarty/smarty/libs/sysplugins/smartyexception.php b/vendor/smarty/smarty/libs/sysplugins/smartyexception.php
new file mode 100644 (file)
index 0000000..431d8f8
--- /dev/null
@@ -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) . ' <-- ';
+    }
+}