From 386a50d3fccdb65bd5a94e578c41f91bcb4cd8c4 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 13 Aug 2006 20:42:10 +0000 Subject: [PATCH] Fix undefined variables --- includes/Pager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Pager.php b/includes/Pager.php index decf154bb7..5555760731 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -358,6 +358,7 @@ abstract class IndexPager implements Pager { $links[] = $this->makeLink( $wgLang->formatNum( $limit ), array( 'offset' => $offset, 'limit' => $limit ) ); } + return $links; } /** @@ -412,7 +413,7 @@ abstract class ReverseChronologicalPager extends IndexPager { $limitLinks = $this->getLimitLinks(); $limits = implode( ' | ', $limitLinks ); - $this->mNavigationBar = "($latestText | $earliestText) " . wfMsgHtml("viewprevnext", $prevText, $nextText, $limits); + $this->mNavigationBar = "({$pagingLinks['first']} | {$pagingLinks['last']}) " . wfMsgHtml("viewprevnext", $pagingLinks['prev'], $pagingLinks['next'], $limits); return $this->mNavigationBar; } } -- 2.20.1