Fix edit link in empty pages.
authorBernie Innocenti <bernie@codewiz.org>
Sat, 2 May 2009 10:55:41 +0000 (12:55 +0200)
committerBernie Innocenti <bernie@codewiz.org>
Sat, 2 May 2009 10:55:41 +0000 (12:55 +0200)
geekigeeki.py

index afaebefc6a4321560a861d04f174c7d8661a304b..0b8e422c199a3cd4230e42859e0ed981e3776df9 100755 (executable)
@@ -635,7 +635,7 @@ class Page:
         except IOError, err:
             if err.errno == errno.ENOENT:
                 if default is None:
-                    default = '//[[%s|Describe %s|action=edit]]//' % (self.page_name, self.page_name)
+                    default = '//[[?a=edit&q=%s|Describe %s]]//' % (self.page_name, self.page_name)
                 return default
             if err.errno == errno.EISDIR:
                 return self.format_dir()