diff options
author | Siebrand Mazeland <siebrand@users.mediawiki.org> | 2011-09-07 17:00:46 +0000 |
---|---|---|
committer | Siebrand Mazeland <siebrand@users.mediawiki.org> | 2011-09-07 17:00:46 +0000 |
commit | 8680d8250392a2234b05e1bbeb83b2143cabd4d0 (patch) | |
tree | 04b27bf7f7ee68b3ceca75aafca4e333084f5147 /includes/Linker.php | |
parent | e82c796570bac61cc5ac1debd17ea6e25d32dbbf (diff) | |
download | mediawikicore-8680d8250392a2234b05e1bbeb83b2143cabd4d0.tar.gz mediawikicore-8680d8250392a2234b05e1bbeb83b2143cabd4d0.zip |
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.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/96449
Diffstat (limited to 'includes/Linker.php')
-rw-r--r-- | includes/Linker.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/includes/Linker.php b/includes/Linker.php index 684338394ac6..3297e976e42a 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; |