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
This commit is contained in:
Matt Pass
2014-01-11 15:02:31 +00:00
parent af0e81e690
commit 67ab6c8f9c

View File

@@ -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 "<script>top.ICEcoder.message('Cannot update config file. Please set public write permissions on lib/".$settingsFile." and try again');</script>";