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