Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

wiki: PAGE_NAME_MOVED -> PAGE_NAME_NORMALIZED

  • Loading branch information...
commit 389fcd040bd5c831257dcafd423b4eb9236ead96 1 parent 468fb13
@andre-d andre-d authored spladug committed
View
2  r2/r2/controllers/validator/wiki.py
@@ -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
View
2  r2/r2/controllers/wiki.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.