r12034 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12033‎ | r12034 | r12035 >
Date:12:56, 9 December 2005
Author:avar
Status:old
Tags:
Comment:
* Modified the description at Special:Version, "log of recent account creations" => "log of account creations"
* Changed msg:newuserlog: "Created the user [[User:$1|$1]] ([[User talk:$1|$2]] | [[Special:Contributions/$1|$3]])" => "New user ([[User talk:$1|$2]] | [[Special:Contributions/$1|$3]] | [[Special:Block/$1|$4]])"
* Passing wfMsgForContent( 'blocklink ') as the fourth paramater to msg:newuserloglog
Modified paths:
  • /trunk/extensions/Newuserlog/Newuserlog.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Newuserlog/Newuserlog.php
@@ -15,7 +15,7 @@
1616 $wgExtensionFunctions[] = 'wfNewuserlog';
1717 $wgExtensionCredits['other'][] = array(
1818 'name' => 'Newuserlog',
19 - 'description' => 'adds a [[Special:Log/newusers|log of recent account creations]] to [[Special:Log]]',
 19+ 'description' => 'adds a [[Special:Log/newusers|log of account creations]] to [[Special:Log]]',
2020 'author' => 'Ævar Arnfjörð Bjarmason'
2121 );
2222
@@ -27,7 +27,7 @@
2828 'newuserlogpage' => 'User creation log',
2929 'newuserlogpagetext' => 'This is a log of recent user creations',
3030 'newuserlogentry' => '',
31 - 'newuserloglog' => "Created the user [[User:$1|$1]] ([[User talk:$1|$2]] | [[Special:Contributions/$1|$3]])"
 31+ 'newuserloglog' => "New user ([[User talk:$1|$2]] | [[Special:Contributions/$1|$3]] | [[Special:Block/$1|$4]])"
3232 )
3333 );
3434
@@ -46,9 +46,10 @@
4747
4848 $talk = $wgContLang->getFormattedNsText( NS_TALK );
4949 $contribs = wfMsgForContent( 'contribslink' );
 50+ $block = wfMsgForContent( 'blocklink' );
5051
5152 $log = new LogPage( 'newusers' );
52 - $log->addEntry( 'newusers', $wgTitle, wfMsgForContent( 'newuserloglog', $wgUser->getName(), $talk, $contribs ) );
 53+ $log->addEntry( 'newusers', $wgTitle, wfMsgForContent( 'newuserloglog', $wgUser->getName(), $talk, $contribs, $block ) );
5354
5455 return true;
5556 }

Status & tagging log