diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-21 00:17:50 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-21 00:17:50 +0000 |
commit | 92e5781212eba09bc847fddb92e86e873338fe67 (patch) | |
tree | 9b97af06096dfea21907bc48c36faf437a2320fb /IkiWiki/CGI.pm | |
parent | 67b782a346171242e94c6621d14f1cd9bd671909 (diff) | |
download | ikiwiki-92e5781212eba09bc847fddb92e86e873338fe67.tar ikiwiki-92e5781212eba09bc847fddb92e86e873338fe67.tar.gz |
* Elegant patch from Ethan to clean up the display of page names in the
dropdown when creating a new page.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index af3bb8a4a..e23ef8afd 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -459,7 +459,8 @@ sub cgi_editpage ($$) { #{{{ $form->tmpl_param("page_select", 1); $form->field(name => "page", type => 'select', - options => \@editable_locs, value => $best_loc); + options => { map { $_ => pagetitle($_, 1) } @editable_locs }, + value => $best_loc); $form->field(name => "type", type => 'select', options => \@page_types); $form->title(sprintf(gettext("creating %s"), pagetitle($page))); |