fixed search results header

This commit is contained in:
following
2013-08-07 21:42:17 +02:00
parent 0cd7f14154
commit 2555b45949
2 changed files with 8 additions and 3 deletions

View File

@@ -81,7 +81,7 @@
// Determine if search.php was called by a search function ('Caches' menu,
// stored query etc.) or for other purpose (e.g. user profile cache lists):
$called_by_search = isset($_REQUEST['calledbysearch']) && $_REQUEST['calledbysearch'];
$called_by_search = isset($_REQUEST['calledbysearch']) ? $_REQUEST['calledbysearch'] <> 0 : true;
$called_by_profile_query = false;
if (isset($_REQUEST['queryid']) || isset($_REQUEST['showresult']))

View File

@@ -11,8 +11,13 @@
<div class="content2-container bg-blue02" style="margin-top:20px;">
<table cellspacing="0" cellpadding="0" width="100%" border="0"><tr>
<td style="white-space:nowrap">
<p class="content-title-noshade-size15" style="padding:0; margin:4px;">&nbsp;{t 1=$results_count 2=($search_headline_caches?'':'display:none')}%1 caches<span style="%2"> matched</span>{/t}&nbsp;</p>
<td style="white-space:nowrap; min-width:150px">
{if $search_headline_caches}
{assign var=showmatched value=''}
{else}
{assign var=showmatched value='display:none'}
{/if}
<p class="content-title-noshade-size15" style="padding:0; margin:4px;">&nbsp;{t 1=$results_count 2=$showmatched}%1 caches<span style="%2"> matched</span>{/t}&nbsp;</p>
</td>
{if $caches|@count && $enable_mapdisplay}
<td style="text-align:right; width:1px">