Files
smarty/libs/sysplugins/smartyexception.php
T

20 lines
334 B
PHP
Raw Normal View History

2014-11-09 06:42:20 +01:00
<?php
2016-02-09 01:27:15 +01:00
2014-11-09 06:42:20 +01:00
/**
* Smarty exception class
*
* @package Smarty
*/
class SmartyException extends Exception
{
public static $escape = false;
2017-10-26 10:25:41 +02:00
/**
* @return string
*/
2014-11-09 06:42:20 +01:00
public function __toString()
{
return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- ';
}
}