From f35a24b35bc27bbd6c7ca83b76a72a149f3bb424 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Thu, 4 May 2017 00:18:38 +0200 Subject: [PATCH] Fixed config loading with comments --- system/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/functions.php b/system/functions.php index 821350dd..111c6a13 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1206,7 +1206,7 @@ function load_config_lua($filename) // TODO: new parser that will also load dofile() includes // strip lua comments to prevent parsing errors - fwrite($file, preg_replace('/(-)(-) (.*)/', '', file_get_contents($config_file))); + fwrite($file, preg_replace('/(-)(-)(.*)/', '', file_get_contents($config_file))); fclose($file); $result = array_merge(parse_ini_file($tempFile, true), isset($config['lua']) ? $config['lua'] : array());