diff options
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 8570ff2eed..7f816d9b1c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1481,11 +1481,14 @@ function build_hidden_fields($field_ary) /** * Parse cfg file */ -function parse_cfg_file($filename) +function parse_cfg_file($filename, $lines = false) { $parsed_items = array(); - $lines = file($filename); + if ($lines === false) + { + $lines = file($filename); + } foreach ($lines as $line) { |