Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
author for pages
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 4, 2015
1 parent e9a618d commit 8fda81f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/webapp/webapp.py
Expand Up @@ -234,7 +234,7 @@ def new_post():
def new_page():
title = b.request.forms.getunicode('title', encoding='utf-8')
try:
_site.commands.new_page(title=title, content_format='html')
_site.commands.new_page(title=title, author=REALNAME, content_format='html')
except SystemExit:
b.abort(500, "This page already exists!")
# reload post list and go to index
Expand Down

0 comments on commit 8fda81f

Please sign in to comment.