Add block link to Special:Contributions
This commit is contained in:
parent
448b460bbd
commit
d4754960a1
2 changed files with 6 additions and 1 deletions
|
|
@ -329,6 +329,7 @@ Special Pages:
|
|||
* 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
|
||||
|
||||
Misc.:
|
||||
* PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
|
||||
|
|
|
|||
|
|
@ -224,7 +224,11 @@ function wfSpecialContributions( $par = null ) {
|
|||
}
|
||||
$talk = $nt->getTalkPage();
|
||||
if( $talk ) {
|
||||
$ul .= ' (' . $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_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' ) );
|
||||
}
|
||||
$ul .= ')';
|
||||
}
|
||||
|
||||
if ($target == 'newbies') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue