Commit 8ba5a6cc authored by 星梦's avatar 星梦
Browse files

V1.1.4

parent cb57a319
Showing with 2 additions and 2 deletions
+2 -2
......@@ -96,9 +96,9 @@ class ConfigController extends Controller
{
$config = file_get_contents(CONF_PATH . '/config.php');
if (is_numeric($value)) {
$config = preg_replace('/(\'' . $key . '\'([\s]+)?=>([\s]+)?)[\w\'\"]+,/', '${1}' . $value . ',', $config);
$config = preg_replace('/(\'' . $key . '\'([\s]+)?=>([\s]+)?)[\w\'\",]+,/', '${1}' . $value . ',', $config);
} else {
$config = preg_replace('/(\'' . $key . '\'([\s]+)?=>([\s]+)?)[\w\'\"]+,/', '${1}\'' . $value . '\',', $config);
$config = preg_replace('/(\'' . $key . '\'([\s]+)?=>([\s]+)?)[\w\'\",]+,/', '${1}\'' . $value . '\',', $config);
}
return file_put_contents(CONF_PATH . '/config.php', $config);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment