diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-14 21:45:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-14 21:45:54 -0400 |
commit | c8b34aa31c7d146adf4210c6171dfea2988a7688 (patch) | |
tree | d25591477f98572fea9e26bff361a6d037b00dff /IkiWiki | |
parent | 4c6fa6413fc26ddbb1f8dc2c73f97a105c5002f8 (diff) | |
download | ikiwiki-c8b34aa31c7d146adf4210c6171dfea2988a7688.tar ikiwiki-c8b34aa31c7d146adf4210c6171dfea2988a7688.tar.gz |
allow misctemplate callers to pass params to suppress actions etc
Suppress disiplay of small search for on search results page, and of
Prefrences link on prefs page.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 4 | ||||
-rw-r--r-- | IkiWiki/Plugin/search.pm | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index b98e9e0a1..28020b500 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -247,7 +247,9 @@ sub cgi_prefs ($$) { $form->text(gettext("Preferences saved.")); } - showform($form, $buttons, $session, $q); + showform($form, $buttons, $session, $q, + prefsurl => "", # avoid showing the preferences link + ); } sub cgi_custom_failure ($$$) { diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index a9089620b..ff5d0ccbe 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -229,7 +229,8 @@ sub setupfiles () { # Avoid omega interpreting anything in the misctemplate # as an omegascript command. my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0", - searching => 1); + searchform => "", # avoid showing the small search form + ); eval q{use HTML::Entities}; error $@ if $@; $misctemplate=encode_entities($misctemplate, '\$'); |