From 8680d8250392a2234b05e1bbeb83b2143cabd4d0 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 7 Sep 2011 17:00:46 +0000 Subject: [PATCH] Mark userLink, userTalkLink, blockLink() and emailLink() as public static per CR comment on r96420 by Nikerabbit. He suggested protected, because of the @private comment, but as we have made more methods public static in the Linker class recently, this seems appropriate. --- includes/Linker.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 684338394a..3297e976e4 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -915,9 +915,8 @@ class Linker { * @param $userId Integer: user id in database. * @param $userText String: user name in database * @return String: HTML fragment - * @private */ - static function userLink( $userId, $userText ) { + public static function userLink( $userId, $userText ) { if ( $userId == 0 ) { $page = SpecialPage::getTitleFor( 'Contributions', $userText ); } else { @@ -992,9 +991,8 @@ class Linker { * @param $userId Integer: user id in database. * @param $userText String: user name in database. * @return String: HTML fragment with user talk link - * @private */ - static function userTalkLink( $userId, $userText ) { + public static function userTalkLink( $userId, $userText ) { $userTalkPage = Title::makeTitle( NS_USER_TALK, $userText ); $userTalkLink = self::link( $userTalkPage, wfMsgHtml( 'talkpagelinktext' ) ); return $userTalkLink; @@ -1004,9 +1002,8 @@ class Linker { * @param $userId Integer: userid * @param $userText String: user name in database. * @return String: HTML fragment with block link - * @private */ - static function blockLink( $userId, $userText ) { + public static function blockLink( $userId, $userText ) { $blockPage = SpecialPage::getTitleFor( 'Block', $userText ); $blockLink = self::link( $blockPage, wfMsgHtml( 'blocklink' ) ); return $blockLink; @@ -1016,9 +1013,8 @@ class Linker { * @param $userId Integer: userid * @param $userText String: user name in database. * @return String: HTML fragment with e-mail user link - * @private */ - static function emailLink( $userId, $userText ) { + public static function emailLink( $userId, $userText ) { $emailPage = SpecialPage::getTitleFor( 'Emailuser', $userText ); $emailLink = self::link( $emailPage, wfMsgHtml( 'emaillink' ) ); return $emailLink; -- 2.20.1