From: Happy-melon Date: Wed, 23 Mar 2011 18:53:50 +0000 (+0000) Subject: $wgUser->blockedBy() already returns a name, doesn't need to be passed through User... X-Git-Tag: 1.31.0-rc.0~31228 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=fdb862df2cc075f616baaf12a74f8468ccf875ff;p=lhc%2Fweb%2Fwiklou.git $wgUser->blockedBy() already returns a name, doesn't need to be passed through User::whoIs(). Probably something I broke at some point :D --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index de5b1523b3..a9e549a6c7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1904,7 +1904,7 @@ class OutputPage { $this->setRobotPolicy( 'noindex,nofollow' ); $this->setArticleRelated( false ); - $name = User::whoIs( $wgUser->blockedBy() ); + $name = $wgUser->blockedBy(); $reason = $wgUser->blockedFor(); if( $reason == '' ) { $reason = wfMsg( 'blockednoreason' );