Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
wiki: PAGE_NAME_MOVED -> PAGE_NAME_NORMALIZED
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-d authored and spladug committed Dec 6, 2012
1 parent 468fb13 commit 389fcd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion r2/r2/controllers/validator/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def run(self, page):
return self.set_error('INVALID_PAGE_NAME', code=400)

if self.error_on_name_normalized and page != original_page:
self.set_error('PAGE_NAME_MOVED')
self.set_error('PAGE_NAME_NORMALIZED')

return page

Expand Down
2 changes: 1 addition & 1 deletion r2/r2/controllers/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class WikiController(RedditController):
def GET_wiki_page(self, pv, page_name):
message = None

if c.errors.get(('PAGE_NAME_MOVED', 'page')):
if c.errors.get(('PAGE_NAME_NORMALIZED', 'page')):
url = join_urls(c.wiki_base_url, page_name)
return self.redirect(url)

Expand Down

0 comments on commit 389fcd0

Please sign in to comment.