avoid showing redundant search box on search results page

master
Joey Hess 2010-05-14 21:42:48 -04:00
parent f69c072d8a
commit 4c6fa6413f
2 changed files with 4 additions and 1 deletions

View File

@ -228,7 +228,8 @@ sub setupfiles () {
# Avoid omega interpreting anything in the misctemplate
# as an omegascript command.
my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0");
my $misctemplate=IkiWiki::misctemplate(gettext("search"), "\0",
searching => 1);
eval q{use HTML::Entities};
error $@ if $@;
$misctemplate=encode_entities($misctemplate, '\$');

View File

@ -48,9 +48,11 @@
</TMPL_IF>
</span>
</span>
<TMPL_UNLESS SEARCHING>
<TMPL_IF SEARCHFORM>
<TMPL_VAR SEARCHFORM>
</TMPL_IF>
</TMPL_UNLESS>
<TMPL_IF HTML5></header><TMPL_ELSE></div></TMPL_IF>
<TMPL_IF HAVE_ACTIONS>