r96862 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96861‎ | r96862 | r96863 >
Date:16:39, 12 September 2011
Author:reedy
Status:reverted
Tags:
Comment:
Fix usage of $this in a static method
Modified paths:
  • /branches/wmf/1.17wmf1/includes/Linker.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/Linker.php
@@ -836,14 +836,13 @@
837837 * @param $userText String: user name in database
838838 * @return String: HTML fragment
839839 */
840 -
841840 public static function userLink( $userId, $userText ) {
842841 if ( $userId == 0 ) {
843842 $page = SpecialPage::getTitleFor( 'Contributions', $userText );
844843 } else {
845844 $page = Title::makeTitle( NS_USER, $userText );
846845 }
847 - return $this->link( $page, htmlspecialchars( $userText ), array( 'class' => 'mw-userlink' ) );
 846+ return self::link( $page, htmlspecialchars( $userText ), array( 'class' => 'mw-userlink' ) );
848847 }
849848
850849 /**

Status & tagging log