distroquery: print "results show" not "results found" when showing pages > 1
This commit is contained in:
parent
0566f3557c
commit
9ca0fcb65a
@ -525,11 +525,11 @@ void printQueryData() {
|
|||||||
printf("<hr>");
|
printf("<hr>");
|
||||||
|
|
||||||
printf("]]></queryreply>");
|
printf("]]></queryreply>");
|
||||||
if (otherresults)
|
k = query_offset / query_limit + 1; /* k = current shown page */
|
||||||
|
if (otherresults || k > 1)
|
||||||
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) shown"));
|
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) shown"));
|
||||||
else
|
else
|
||||||
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) found"));
|
printf("<querystatus><![CDATA[%d %s.", numresults, _("result(s) found"));
|
||||||
k = query_offset / query_limit + 1; /* k = current shown page */
|
|
||||||
if (k < 7) j=1; else j=k-5; /* j = start pages list from */
|
if (k < 7) j=1; else j=k-5; /* j = start pages list from */
|
||||||
if (!otherresults) {
|
if (!otherresults) {
|
||||||
/* current page is last available */
|
/* current page is last available */
|
||||||
|
Loading…
Reference in New Issue
Block a user