From e5cc47dfbbe709bb21d34efdbaaa8fd9f4d577ad Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Mon, 14 Mar 2005 03:13:27 +0000 Subject: [PATCH] fix URLs --- includes/PageHistory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/PageHistory.php b/includes/PageHistory.php index c7bb05e7aa..7318ffd4d4 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -116,12 +116,12 @@ class PageHistory { $lowts = $pages[count($pages) - 1]->rev_timestamp; - $myurl = $wgTitle->getLocalURL('action=history'); - $prevurl = "{$myurl}&dir=prev&offset={$offset}&limit={$limit}"; - $nexturl = "{$myurl}&offset={$lowts}&limit={$limit}"; + $prevurl = $wgTitle->getLocalURL("action=history&dir=prev&offset={$offset}&limit={$limit}"); + $nexturl = $wgTitle->getLocalURL("action=history&offset={$lowts}&limit={$limit}"); $urls = array(); foreach (array(20, 50, 100, 250, 500) as $num) { - $urls[] = "".$wgLang->formatNum($num).""; + $urls[] = "getLocalURL( + "action=history&offset={$offset}&limit={$num}")."\">".$wgLang->formatNum($num).""; } $bits = implode($urls, ' | '); $numbar = wfMsg("viewprevnext", -- 2.20.1