Follow-up r95930, consolidate into one message per CR
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Thu, 1 Sep 2011 04:26:21 +0000 (04:26 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Thu, 1 Sep 2011 04:26:21 +0000 (04:26 +0000)
includes/EditPage.php
languages/messages/MessagesEn.php

index a0bafa7..7ef2662 100644 (file)
@@ -1606,14 +1606,12 @@ HTML
                }
 
                $curUP = $wgUser->getUserPage();
-               $sk = $wgOut->getSkin();
                if ( $this->mTitle->getNamespace() == NS_USER
                        && substr( $this->mTitle->getPrefixedText(), 0, strlen( $curUP->getPrefixedText() ) ) != $curUP->getPrefixedText()
                        && $this->formtype != 'preview'
                        && $this->formtype != 'diff' )
                {
-                       $utpLink = $sk->makeKnownLinkObj( $this->mTitle->getTalkPage(), wfMsgHtml( 'editinguserpagetalklink' ), 'action=edit' );
-                       $wgOut->addHTML( wfMsgWikiHtml( 'editinguserpage', $utpLink ) );
+                       $wgOut->addHTML( wfMessage( 'editinguserpage', $this->mTitle->getTalkPage()->getFullURL( 'action=edit' ) )->parse() );
                }
 
                if ( wfReadOnly() ) {
index cafa477..3f1f1c9 100644 (file)
@@ -1437,8 +1437,7 @@ It appears to have been deleted.',
 'edit-no-change'                   => 'Your edit was ignored, because no change was made to the text.',
 'edit-already-exists'              => 'Could not create a new page.
 It already exists.',
-'editinguserpage' => "'''Note:''' You are editing a [[Help:User page|user page]]. To leave this user a message, $1.",
-'editinguserpagetalklink' => 'edit their talk page',
+'editinguserpage' => "'''Note:''' You are editing a [[Help:User page|user page]]. To leave this user a message, [$1 edit their talk page].",
 'addsection-preload'               => '', # do not translate or duplicate this message to other languages
 'addsection-editintro'             => '', # do not translate or duplicate this message to other languages