* (bug 30344) Add configuration variable for setting custom priorities when
generating sitemaps
* (bug 16428) Include permalink in printable version
+* (bug 5865) Warning on editing other user's userpage
=== Bug fixes in 1.19 ===
* $wgUploadNavigationUrl should be used for file redlinks if
}
}
+ $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 ) );
+ }
+
if ( wfReadOnly() ) {
$wgOut->wrapWikiMsg( "<div id=\"mw-read-only-warning\">\n$1\n</div>", array( 'readonlywarning', wfReadOnlyReason() ) );
} elseif ( $wgUser->isAnon() ) {
'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',
'addsection-preload' => '', # do not translate or duplicate this message to other languages
'addsection-editintro' => '', # do not translate or duplicate this message to other languages