From b376e41406828dd47ab3db79cfddd8b73d9773ad Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 21 Mar 2020 08:54:01 +0000 Subject: [PATCH] codeMirroDir removed from updater key check --- lib/updater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/updater.php b/lib/updater.php index 9adc2d7..8816f15 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -144,11 +144,11 @@ function transposeSettings($oldFile,$newFile,$saveFile) { $contentLine = $newSettingsArray[$i].PHP_EOL; for ($j=0; $j -1) { + if ($thisKey != "" && $thisKey != "versionNo" && strpos($oldSettingsArray[$j],'"'.$thisKey.'"') > -1) { $contentLine = $oldSettingsArray[$j].PHP_EOL; // If the old setting we're copying over isn't replacing the last line and doesn't end in a comma (after an rtrim to remove line endings), and doesn't contain a comment, add one if ($i != count($newSettingsArray)-1 && substr(rtrim($contentLine),-1) != "," && strpos($contentLine,"//") == -1) { - $contentLine = str_replace(PHP_EOL,",".PHP_EOL,$contentLine); + $contentLine = str_replace(PHP_EOL,",".PHP_EOL,$contentLine); } } }