JS window redir incase headers already sent

This file includes settings.php which puts out a couple of JS vars, so
headers already sent and as a result, this page dies and goes nowhere.
JS window.location setup as a failsafe to do the same in that event.
This commit is contained in:
Matt Pass
2014-01-21 13:49:51 +00:00
parent 7c230cf09a
commit 272bc177ce

View File

@@ -131,6 +131,7 @@ if (isset($_GET['action'])) {
fclose($fh);
// Finally, reload the iFrame screen for the user
header("Location: plugins-manager.php?updatedPlugins");
echo "<script>window.location='plugins-manager.php?updatedPlugins';</script>";
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>";