- internal change of config file lexer/parser on handling of section names

- bugfix on registered objects (format parameter of register_object was not handled correctly)
This commit is contained in:
Uwe.Tews
2010-01-16 12:03:53 +00:00
parent da2f22438c
commit f11e4e40bc
5 changed files with 246 additions and 150 deletions

View File

@@ -87,7 +87,7 @@ class Smarty_Internal_Config_File_Compiler {
// $line--;
}
$match = preg_split("/\n/", $this->lex->data);
$error_text = 'Syntax Error in config file "' . $this->config->getConfigFilepath() . '" on line ' . $line . ' "'. $match[$line-1].'" ';
$error_text = "Syntax error in config file '{$this->config->getConfigFilepath()}' on line {$line} '{$match[$line-1]}' ";
if (isset($args)) {
// individual error message
$error_text .= $args;