r22506 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22505‎ | r22506 | r22507 >
Date:12:32, 28 May 2007
Author:hashar
Status:old
Tags:
Comment:
Add class for prev/next/numlinks just like r22473 / r22482
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -819,7 +819,7 @@
820820 if ( $po < 0 ) { $po = 0; }
821821 $q = "limit={$limit}&offset={$po}";
822822 if ( '' != $query ) { $q .= '&'.$query; }
823 - $plink = '<a href="' . $title->escapeLocalUrl( $q ) . "\">{$prev}</a>";
 823+ $plink = '<a href="' . $title->escapeLocalUrl( $q ) . "\" class=\"mw-prevlink\">{$prev}</a>";
824824 } else { $plink = $prev; }
825825
826826 $no = $offset + $limit;
@@ -829,7 +829,7 @@
830830 if ( $atend ) {
831831 $nlink = $next;
832832 } else {
833 - $nlink = '<a href="' . $title->escapeLocalUrl( $q ) . "\">{$next}</a>";
 833+ $nlink = '<a href="' . $title->escapeLocalUrl( $q ) . "\" class=\"mw-nextlink\">{$next}</a>";
834834 }
835835 $nums = wfNumLink( $offset, 20, $title, $query ) . ' | ' .
836836 wfNumLink( $offset, 50, $title, $query ) . ' | ' .
@@ -850,7 +850,7 @@
851851 $q .= 'limit='.$limit.'&offset='.$offset;
852852
853853 $fmtLimit = $wgLang->formatNum( $limit );
854 - $s = '<a href="' . $title->escapeLocalUrl( $q ) . "\">{$fmtLimit}</a>";
 854+ $s = '<a href="' . $title->escapeLocalUrl( $q ) . "\" class=\"mw-numlink\">{$fmtLimit}</a>";
855855 return $s;
856856 }
857857

Follow-up revisions

RevisionCommit summaryAuthorDate
r22518Merged revisions 22484-22517 via svnmerge from...david22:22, 28 May 2007

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r22473* cleaner indenting for query pages...hashar08:22, 27 May 2007
r22482- need to include </div> in empty result case, otherwise page layout is screwed...river22:13, 27 May 2007