From bd1b8bebace80f70d0f71dc6f14c6aed01177bff Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 25 Mar 2020 11:43:55 +0900 Subject: [PATCH] Update config.php --- system/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/config.php b/system/config.php index 3fb4475..cfea9d6 100644 --- a/system/config.php +++ b/system/config.php @@ -10,14 +10,14 @@ if(!is_fn("read_config")) { function read_config() { $config = array(); - $is_legacy_version = version_compare(phpversion(), "5.3.0", "<"); + $is_compatible = version_compare(phpversion(), "5.3.0", "<"); $files = retrieve_storage_dir("config"); foreach($files as $file) { $ini = array(); // `parse_ini_string` function is not supported under 5.3.0. Use only 'ini' file - if(!$is_legacy_version && check_file_extension($file, "ini.php", array("multiple" => true))) { + if(!$is_compatible && check_file_extension($file, "ini.php", array("multiple" => true))) { $str = include($file); $ini = parse_ini_string($str); } elseif(check_file_extension($file, "ini")) {