Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->_setDirs();
     $this->_setConfParam();
 }
    }
    /**
     * Disable error handler muting expected messages
     *
     * @return void
     */
    public static function unmuteExpectedErrors()
    {
        restore_error_handler();
    }
}
// Check if we're running on windows
SmartyCore::$_IS_WINDOWS = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN';
// let PCRE (preg_*) treat strings as ISO-8859-1 if we're not dealing with UTF-8
if (SmartyCore::$_CHARSET !== 'UTF-8') {
    SmartyCore::$_UTF8_MODIFIER = '';
}
/**
 * Smarty exception class
 * @package Smarty
 */
class SmartyException extends Exception
{
    public static $escape = false;
    public function __toString()
    {
        return ' --> Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- ';
    }
}
/**
 * Smarty compiler exception class