diff --git a/action/publish-question.php b/action/publish-question.php index ae68021..f57a9d6 100644 --- a/action/publish-question.php +++ b/action/publish-question.php @@ -1,5 +1,6 @@ exec("INSERT INTO questions(user,by,question,answered,date) VALUES ('$u','$by','$question',0,". strtotime('now') .");"); unset($_POST["post-text"]); - header("Location: /user/" . $p_user["username"]); + if($fancy_urls) header("Location: /user/" . $p_user["username"]); + else header("Location: /user.php?q=" . $p_user["username"]); } } ?>