mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix bug where config file starts with hidden section
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- fix bug where config file starts with hidden section (boots, Monte)
|
||||
- add discrete error checking pertaining to $cache_dir
|
||||
and $compile_dir, their existance and writability (Monte)
|
||||
- fixed behaviour of start=... for {counter} (messju)
|
||||
|
@@ -262,7 +262,7 @@ class Config_File {
|
||||
$config_data = array();
|
||||
|
||||
/* Get global variables first. */
|
||||
if (preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
|
||||
if ($contents{0} != '[' && preg_match("/^(.*?)(\n\[|\Z)/s", $contents, $match))
|
||||
$config_data["vars"] = $this->_parse_config_block($match[1]);
|
||||
|
||||
/* Get section variables. */
|
||||
|
Reference in New Issue
Block a user