aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/CGI.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-14 21:45:22 -0400
committerJoey Hess <joey@kitenet.net>2010-05-14 21:45:54 -0400
commitc8b34aa31c7d146adf4210c6171dfea2988a7688 (patch)
treed25591477f98572fea9e26bff361a6d037b00dff /IkiWiki/CGI.pm
parent4c6fa6413fc26ddbb1f8dc2c73f97a105c5002f8 (diff)
downloadikiwiki-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/CGI.pm')
-rw-r--r--IkiWiki/CGI.pm4
1 files changed, 3 insertions, 1 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 ($$$) {