Browse Source

settings lazy fix 2

Cerothen 9 years ago
parent
commit
78dea3ec13
1 changed files with 5 additions and 3 deletions
  1. 5 3
      settings.php

+ 5 - 3
settings.php

@@ -276,9 +276,11 @@ if($action == "upgrade") :
 endif;
 
 if($action == 'createLocation' || $action == 'homepageSettings') {
-	unset($_POST['action']);
-	updateConfig($_POST);
-	echo "<script>setTimeout(function() {window.location.href = window.location.href},1500);</script>";
+    unset($_POST['action']);
+    updateConfig($_POST);
+    sleep(2.5);
+    header("Location: settings.php");
+    die();
 }
                 
 if(!isset($_POST['op'])) :