avoid key error

This commit is contained in:
Elan Ruusamäe 2012-09-22 20:06:47 +02:00
parent eac9c21d8b
commit 8411723b65

View file

@ -274,6 +274,7 @@ else:
# insert frontpage,
# so that MoinMoin frontpage gets saved as DokuWiki frontpage based on their configs
frontpage = wikiutil.getFrontPage(request)
if pages.has_key(frontpage.page_name):
del pages[frontpage.page_name]
pages[dw.getId()] = frontpage