mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +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
|
- add discrete error checking pertaining to $cache_dir
|
||||||
and $compile_dir, their existance and writability (Monte)
|
and $compile_dir, their existance and writability (Monte)
|
||||||
- fixed behaviour of start=... for {counter} (messju)
|
- fixed behaviour of start=... for {counter} (messju)
|
||||||
|
@@ -262,7 +262,7 @@ class Config_File {
|
|||||||
$config_data = array();
|
$config_data = array();
|
||||||
|
|
||||||
/* Get global variables first. */
|
/* 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]);
|
$config_data["vars"] = $this->_parse_config_block($match[1]);
|
||||||
|
|
||||||
/* Get section variables. */
|
/* Get section variables. */
|
||||||
|
Reference in New Issue
Block a user