diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-01-07 16:10:32 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-01-07 16:10:32 -0500 |
commit | 45de8dc710bf5844ed99514342bade439c396084 (patch) | |
tree | de7920d03c184bfa8b1b19c839bec9a0bbf4f256 /IkiWiki | |
parent | 9dbbbd0efacb5acebaed2d0ee74d1c185b27394a (diff) | |
download | ikiwiki-45de8dc710bf5844ed99514342bade439c396084.tar ikiwiki-45de8dc710bf5844ed99514342bade439c396084.tar.gz |
* opendiscussion: allow editing of the toplevel discussion page
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/opendiscussion.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm index fd5c9673d..c835f0106 100644 --- a/IkiWiki/Plugin/opendiscussion.pm +++ b/IkiWiki/Plugin/opendiscussion.pm @@ -15,7 +15,7 @@ sub canedit ($$) { #{{{ my $session=shift; my $discussion=gettext("discussion"); - return "" if $page=~/\/\Q$discussion\E$/; + return "" if $page=~/(\/|^)\Q$discussion\E$/; return undef; } #}}} |