+YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@423 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
40 lines
802 B
PHP
40 lines
802 B
PHP
<?php
|
|
/**
|
|
* Piwik - Open source web analytics
|
|
*
|
|
* @link http://piwik.org
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
|
|
* @version $Id: Smarty.php 2147 2010-05-06 18:50:38Z vipsoft $
|
|
*
|
|
* @category Piwik
|
|
* @package Piwik
|
|
*/
|
|
|
|
/**
|
|
* @see libs/Smarty/Smarty.class.php
|
|
* @link http://smarty.net
|
|
*/
|
|
require_once PIWIK_INCLUDE_PATH . '/libs/Smarty/Smarty.class.php';
|
|
|
|
/**
|
|
* Smarty class
|
|
*
|
|
* @package Piwik
|
|
* @subpackage Piwik_Smarty
|
|
* @see Smarty, libs/Smarty/Smarty.class.php
|
|
* @link http://smarty.net/manual/en/
|
|
*/
|
|
class Piwik_Smarty extends Smarty
|
|
{
|
|
function trigger_error($error_msg, $error_type = E_USER_WARNING)
|
|
{
|
|
throw new SmartyException($error_msg);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @package Piwik
|
|
* @subpackage Piwik_Smarty
|
|
*/
|
|
class SmartyException extends Exception {}
|