r84622 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84621‎ | r84622 | r84623 >
Date:18:53, 23 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
$wgUser->blockedBy() already returns a name, doesn't need to be passed through User::whoIs(). Probably something I broke at some point :D
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -1904,7 +1904,7 @@
19051905 $this->setRobotPolicy( 'noindex,nofollow' );
19061906 $this->setArticleRelated( false );
19071907
1908 - $name = User::whoIs( $wgUser->blockedBy() );
 1908+ $name = $wgUser->blockedBy();
19091909 $reason = $wgUser->blockedFor();
19101910 if( $reason == '' ) {
19111911 $reason = wfMsg( 'blockednoreason' );

Status & tagging log