diff options
Diffstat (limited to 'includes/SpecialContributions.php')
-rw-r--r-- | includes/SpecialContributions.php | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 35afe173eca5..ffbfe91c733c 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -169,7 +169,7 @@ function wfSpecialContributions( $par = null ) { } $nt =& Title::makeTitle(NS_USER, $nt->getDBkey()); - $limit = min($wgRequest->getInt('limit', 50), 500); + list( $limit, $offset) = wfCheckLimits(); $offset = $wgRequest->getVal('offset'); /* Offset must be an integral. */ if (!strlen($offset) || !preg_match("/^[0-9]+$/", $offset)) @@ -226,6 +226,8 @@ function wfSpecialContributions( $par = null ) { $wgOut->setSubtitle( wfMsgHtml( 'contribsub', $ul ) ); + wfRunHooks('SpecialContributionsBeforeMainOutput', $id ); + $arr = $wgContLang->getFormattedNamespaces(); $nsform = "<form method='get' action=\"$wgScript\">\n"; $nsform .= wfElement("input", array( @@ -245,19 +247,10 @@ function wfSpecialContributions( $par = null ) { "type" => "hidden", "value" => $target)); $nsform .= "<p>"; - $nsform .= htmlspecialchars(wfMsg('namespace')) . " <select name='namespace'>\n"; - foreach (array("" => wfMsg('contributionsall')) + $arr as $nsn => $name) { - if ($nsn < 0) - continue; - $name = $nsn!==0 ? $name : wfMsg('blanknamespace'); - $nsform .= ("$nsn" == "$ns") ? - wfElement("option", - array("value" => $nsn, "selected" => "selected"), - $name) - : - wfElement("option", array("value" => $nsn), $name); - } - $nsform .= "</select>\n"; + $nsform .= wfMsgHtml('namespace'); + + $nsform .= HTMLnamespaceselector($ns, ''); + $nsform .= wfElement("input", array( "type" => "submit", "value" => wfMsg('allpagessubmit'))); @@ -355,7 +348,7 @@ function ucListEdit( $sk, $row ) { if( $row->rev_id == $row->page_latest ) { $topmarktext .= '<strong>' . $messages['uctop'] . '</strong>'; if( !$row->page_is_new ) { - $difftext .= $sk->makeKnownLinkObj( $page, '(' . $messages['diff'] . ')', 'diff=0' ); + $difftext .= '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=0' ) . ')'; } else { $difftext .= $messages['newarticle']; } @@ -373,7 +366,7 @@ function ucListEdit( $sk, $row ) { if( $row->rev_deleted && !$wgUser->isAllowed( 'undelete' ) ) { $difftext = '(' . $messages['diff'] . ')'; } else { - $difftext = $sk->makeKnownLinkObj( $page, '(' . $messages['diff'].')', 'diff=prev&oldid='.$row->rev_id ); + $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; } $histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')'; |