Deutschland United States United Kingdom
ContentLion - Open Source CMS

exception.php

Blame | Last modification | View Log

<?php

/**
 * Smarty exception class
 * @package Smarty
 */

class Plugin_Smarty_Exception extends Exception
{
    public static $escape = false;

    public function __toString()
    {
        return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message)  . ' <-- ';
    }
}