Replace array() notation with PHP preferred square brackets []

This commit is contained in:
bergware
2016-10-24 09:33:11 +02:00
parent 16dab2eafc
commit e784f23b63
10 changed files with 44 additions and 41 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
// write syslinux file
write_log("Saving file $file");
exec("mkdir -p ".dirname($file));
file_put_contents($file, str_replace(array("\r\n","\r"), "\n", $_POST['text']));
file_put_contents($file, str_replace(["\r\n","\r"], "\n", $_POST['text']));
// discard settings
$save = false;
?>