]> git.mxchange.org Git - friendica.git/blob - vendor/smarty/smarty/libs/sysplugins/smartyexception.php
Add Smarty to Composer
[friendica.git] / vendor / smarty / smarty / libs / sysplugins / smartyexception.php
1 <?php
2
3 /**
4  * Smarty exception class
5  *
6  * @package Smarty
7  */
8 class SmartyException extends Exception
9 {
10     public static $escape = false;
11
12     public function __toString()
13     {
14         return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- ';
15     }
16 }