avoid showing redundant search box on search results page
parent
f69c072d8a
commit
4c6fa6413f
|
@ -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, '\$');
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue