* Move parentheses out of <a> link in Special:Contributions
* (bug 3192): properly check 'limit' parameter on Special:Contributions
* (bug 3187) watchlist text refer to unexistent "Stop watching" action
-* Add block link to Special:Contributions
+* Add block link and a link to the block log to Special:Contributions
Misc.:
* PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
$talk = $nt->getTalkPage();
if( $talk ) {
$ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) );
- if( $wgUser->isAllowed( 'block' ) ) {
- $ul .= ' | ' . $sk->makeLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getText() ), wfMsgHtml( 'blocklink' ) );
+ if( ( $id != 0 ) || ( $id == 0 && User::isIP( $nt->getText() ) ) ) {
+ if( $wgUser->isAllowed( 'block' ) ) {
+ $ul .= ' | ' . $sk->makeLinkObj( Title::makeTitle( NS_SPECIAL, 'Blockip/' . $nt->getText() ), wfMsgHtml( 'blocklink' ) );
+ }
+ $ul .= ' | ' . $sk->makeLinkObj( Title::makeTitle( NS_SPECIAL, 'Log' ), LogPage::logName( 'block' ), 'type=block&page=' . $nt->getPrefixedText() );
}
$ul .= ')';
}