From 1e59f624f08d27e940b99b71ad5bdf33cc608d99 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 13 Oct 2019 21:08:18 +0900 Subject: [PATCH] Update config.php --- system/config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/config.php b/system/config.php index 47830b6..07b460a 100644 --- a/system/config.php +++ b/system/config.php @@ -10,6 +10,7 @@ if(!check_function_exists("read_config")) { function read_config() { $config = array(); + $is_legacy_version = version_compare(phpversion(), "5.3.0", "<"); // below 5.3.0 $files = retrieve_storage_dir("config"); foreach($files as $file) { @@ -17,7 +18,7 @@ if(!check_function_exists("read_config")) { if(check_file_extension($file, "ini.php", array("multiple" => true))) { $str = include($file); - if(version_compare(phpversion(), "5.3.0", "<")) { // below 5.3.0 + if($is_legacy_version) { $ini = parse_ini_file(write_storage_file($str, array( "extension" => "ini" )));