Mark userLink, userTalkLink, blockLink() and emailLink() as public static per CR...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Wed, 7 Sep 2011 17:00:46 +0000 (17:00 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Wed, 7 Sep 2011 17:00:46 +0000 (17:00 +0000)
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

index 6843383..3297e97 100644 (file)
@@ -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;