public function trigger_config_file_error($args = null
) { $this->lex = Smarty_Internal_Configfilelexer::
instance();
$this->parser = Smarty_Internal_Configfileparser::
instance();
// get template source line which has error
$line =
$this->lex->line;
if (isset($args)) { // $line--;
} $match =
preg_split("/\n/",
$this->lex->data
);
$error_text = "Syntax error in config file '{
$this->config->source->filepath
}' on line {
$line} '{
$match[$line-1
]}' ";
if (isset($args)) { // individual error message
$error_text .=
$args;
}