Guest User

Untitled

a guest
Oct 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.01 KB | None | 0 0
  1. Index: includes/EditPage.php
  2. ===================================================================
  3. --- includes/EditPage.php   (revision 95930)
  4. +++ includes/EditPage.php   (working copy)
  5. @@ -1606,14 +1606,14 @@
  6.         }
  7.  
  8.         $curUP = $wgUser->getUserPage();
  9. -       $sk = $wgOut->getSkin();
  10. +       // $sk = $wgOut->getSkin();
  11.         if ( $this->mTitle->getNamespace() == NS_USER
  12.             && substr( $this->mTitle->getPrefixedText(), 0, strlen( $curUP->getPrefixedText() ) ) != $curUP->getPrefixedText()
  13.             && $this->formtype != 'preview'
  14.             && $this->formtype != 'diff' )
  15.         {
  16. -           $utpLink = $sk->makeKnownLinkObj( $this->mTitle->getTalkPage(), wfMsgHtml( 'editinguserpagetalklink' ), 'action=edit' );
  17. -           $wgOut->addHTML( wfMsgWikiHtml( 'editinguserpage', $utpLink ) );
  18. +           // $utpLink = $sk->makeKnownLinkObj( $this->mTitle->getTalkPage(), wfMsgHtml( 'editinguserpagetalklink' ), 'action=edit' );
  19. +           $wgOut->addHTML( wfMsgWikiHtml( 'editinguserpage', $this->mTitle->getTalkPage()->getFullURL( 'action=edit' ) ) );
  20.         }
  21.  
  22.         if ( wfReadOnly() ) {
  23. Index: languages/messages/MessagesEn.php
  24. ===================================================================
  25. --- languages/messages/MessagesEn.php   (revision 95930)
  26. +++ languages/messages/MessagesEn.php   (working copy)
  27. @@ -1437,8 +1437,8 @@
  28.  'edit-no-change'                   => 'Your edit was ignored, because no change was made to the text.',
  29.  'edit-already-exists'              => 'Could not create a new page.
  30.  It already exists.',
  31. -'editinguserpage' => "'''Note:''' You are editing a [[Help:User page|user page]]. To leave this user a message, $1.",
  32. -'editinguserpagetalklink' => 'edit their talk page',
  33. +'editinguserpage' => "'''Note:''' You are editing a [[Help:User page|user page]]. To leave this user a message, [$1 edit their talk page].",
  34. +'editinguserpagetalklink' => '',
  35.  'addsection-preload'               => '', # do not translate or duplicate this message to other languages
  36.  'addsection-editintro'             => '', # do not translate or duplicate this message to other languages
Add Comment
Please, Sign In to add comment