mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 23:34:01 +01:00
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:
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user