Added custom parse_ini_file function to deal with '#' comments

This commit is contained in:
bergware
2016-10-25 20:59:51 +02:00
parent b3236e460e
commit ca7c521ca2

View File

@@ -239,4 +239,8 @@ function transpose_user_path($path) {
}
return $path;
}
// custom parse_ini_file function to deal with '#' comments
function my_parse_ini_file($file) {
return parse_ini_string(str_replace('#',';',file_get_contents($file)));
}
?>