wiki: PAGE_NAME_MOVED -> PAGE_NAME_NORMALIZED

This commit is contained in:
Andre D
2012-11-30 11:46:49 -05:00
committed by Neil Williams
parent 468fb13b68
commit 389fcd040b
2 changed files with 2 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ class VWikiPageName(Validator):
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

View File

@@ -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)