| 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: | /** |
| 13: | * @return string |
| 14: | */ |
| 15: | public function __toString() |
| 16: | { |
| 17: | return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- '; |
| 18: | } |
| 19: | } |
| 20: |