diff options
Diffstat (limited to 'apioforum/forum.py')
| -rw-r--r-- | apioforum/forum.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apioforum/forum.py b/apioforum/forum.py index b731a24..425d148 100644 --- a/apioforum/forum.py +++ b/apioforum/forum.py @@ -292,7 +292,9 @@ def create_thread(forum): if g.user is None: flash("you need to be logged in to create a " + thread_type) return redirect(url_for('index')) - + + title = request.args['title'] if 'title' in request.args else "" + content = request.args['content'] if 'content' in request.args else "" if request.method == "POST": title = request.form['title'] content = request.form['content'] @@ -336,6 +338,8 @@ def create_thread(forum): return render_template("config_thread.html", forum=forum, thread_type=thread_type, + title=title, + content=content, avail_tags=get_avail_tags(forum['id'])) @forum_route("roles",methods=("GET","POST")) |
