library/smarty/libs/sysplugins/smartyexception.php
changeset 46 f11c31f7fa3e
parent 45 a56e7f9a0463
child 47 03388ec805b4
equal deleted inserted replaced
45:a56e7f9a0463 46:f11c31f7fa3e
     1 <?php
       
     2 
       
     3 /**
       
     4  * Smarty exception class
       
     5  *
       
     6  * @package Smarty
       
     7  */
       
     8 class SmartyException extends Exception {
       
     9     public static $escape = false;
       
    10 
       
    11     public function __toString() {
       
    12         return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- ';
       
    13     }
       
    14 }