r17788 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17787‎ | r17788 | r17789 >
Date:17:52, 18 November 2006
Author:mkroetzsch
Status:old
Tags:
Comment:
fixed result counter
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -67,7 +67,7 @@
6868 $navigation = '<a href="' . $skin->makeSpecialUrl('Ask','offset=' . max(0,$offset-$limit) . '&limit=' . $limit . '&query=' . urlencode($query) . '&sort=' . urlencode($sort) .'&order=' . urlencode($order)) . '">' . wfMsg('smw_ask_prev') . '</a>';
6969 else $navigation = wfMsg('smw_ask_prev');
7070
71 - $navigation .= '&nbsp;&nbsp;&nbsp;&nbsp; <b>' . wfMsg('smw_ask_results') . ' ' . ($offset+1) . '&ndash; ' . ($offset + $iq->getDisplayCount()) . '</b>&nbsp;&nbsp;&nbsp;&nbsp;';
 71+ $navigation .= '&nbsp;&nbsp;&nbsp;&nbsp; <b>' . wfMsg('smw_ask_results') . ' ' . ($offset+1) . '&ndash; ' . ($offset + $iq->getDisplayCount() - 1) . '</b>&nbsp;&nbsp;&nbsp;&nbsp;';
7272
7373 if ($iq->hasFurtherResults())
7474 $navigation .= ' <a href="' . $skin->makeSpecialUrl('Ask','offset=' . ($offset+$limit) . '&limit=' . $limit . '&query=' . urlencode($query) . '&sort=' . urlencode($sort) .'&order=' . urlencode($order)) . '">' . wfMsg('smw_ask_next') . '</a>';

Status & tagging log