repPosEnd is now ftpSites as it's next array item

This commit is contained in:
Matt Pass
2016-07-22 10:33:57 +01:00
parent 157d9a40fa
commit 78117d52d0

View File

@@ -142,7 +142,7 @@ if (!$demoMode && isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] && isset
// Identify the bit to replace
$repPosStart = strpos($settingsContents,'"plugins"');
$repPosEnd = strpos($settingsContents,'"githubLocalPaths"');
$repPosEnd = strpos($settingsContents,'"ftpSites"');
// Compile our new settings
$settingsContents = substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents));