From 67ab6c8f9cf2f99f43673dfda2f81f7e29573119 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 11 Jan 2014 15:02:31 +0000 Subject: [PATCH] repPosEnd now to previousFiles, GET QS on update End point immediately after plugins is now previousFiles as plugins has moved in the array order Tacked ?updatedPlugins onto the URL so we can pick this up and know what to also action in plugins-manager.php --- lib/plugins-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins-manager.php b/lib/plugins-manager.php index 343825a..db04650 100644 --- a/lib/plugins-manager.php +++ b/lib/plugins-manager.php @@ -119,7 +119,7 @@ if (isset($_GET['action'])) { // Identify the bit to replace $repPosStart = strpos($settingsContents,'"plugins"'); - $repPosEnd = strpos($settingsContents,'"theme"'); + $repPosEnd = strpos($settingsContents,'"previousFiles"'); // Compile our new settings $settingsContents = substr($settingsContents,0,$repPosStart).$settingsNew.substr($settingsContents,$repPosEnd,strlen($settingsContents)); @@ -130,7 +130,7 @@ if (isset($_GET['action'])) { fwrite($fh, $settingsContents); fclose($fh); // Finally, reload the iFrame screen for the user - header("Location: plugins-manager.php"); + header("Location: plugins-manager.php?updatedPlugins"); die('saving plugins...'); } else { echo "";