From 48d55e1b9de6e82798e04327a824172e8fc5fcd7 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 31 Aug 2008 12:59:45 +0000 Subject: [PATCH] Add css classes to the Pager just like our QueryPages --- includes/Pager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Pager.php b/includes/Pager.php index f3d99f63da..3125610754 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -292,6 +292,10 @@ abstract class IndexPager implements Pager { # HTML 4 has no rel="end" . . . $attrs = ''; } + + if( $type ) { + $attrs .= " class=\"mw-{$type}link\"" ; + } return $this->getSkin()->makeKnownLinkObj( $this->getTitle(), $text, wfArrayToCGI( $query, $this->getDefaultQuery() ), '', '', $attrs ); @@ -427,7 +431,7 @@ abstract class IndexPager implements Pager { } foreach ( $this->mLimitsShown as $limit ) { $links[] = $this->makeLink( $wgLang->formatNum( $limit ), - array( 'offset' => $offset, 'limit' => $limit ) ); + array( 'offset' => $offset, 'limit' => $limit ), 'num' ); } return $links; } -- 2.20.1