+ if (($gowhere = $wgRequest->getText("go")) !== NULL) {
+ switch ($gowhere) {
+ case "first":
+ if (($lastid = $this->getLastOffset($id, $limit)) === NULL)
+ break;
+ $gourl = $wgTitle->getLocalURL("action=history&limit={$limit}&offset={$lastid}");
+ break;
+ default:
+ $gourl = NULL;
+ }
+
+ if (!is_null($gourl)) {
+ $wgOut->redirect($gourl);
+ return;
+ }
+ }
+
+ $firsturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}&go=first");
+ $lasturl = $wgTitle->escapeLocalURL("action=history&limit={$limit}");
+ $firsttext = wfMsg("histfirst");
+ $lasttext = wfMsg("histlast");
+
+ $firstlast = "(<a href=\"$firsturl\">$firsttext</a> | <a href=\"$lasturl\">$lasttext</a>)";
+