From 78117d52d07fb5233f226345369efd9f58597386 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Fri, 22 Jul 2016 10:33:57 +0100 Subject: [PATCH] repPosEnd is now ftpSites as it's next array item --- lib/plugins-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins-manager.php b/lib/plugins-manager.php index 2ce107c..1dc90cd 100644 --- a/lib/plugins-manager.php +++ b/lib/plugins-manager.php @@ -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));