Merge "Update anoneditwarning message per core change"

This commit is contained in:
jenkins-bot 2014-09-02 19:05:03 +00:00 committed by Gerrit Code Review
commit 2d92bdb9d1

View file

@ -316,7 +316,13 @@ class ApiVisualEditor extends ApiBase {
RequestContext::getMain()->setTitle( $page );
$notices = $page->getEditNotices();
if ( $user->isAnon() ) {
$notices[] = $this->msg( 'anoneditwarning' )->parseAsBlock();
$notices[] = $this->msg(
'anoneditwarning',
// Log-in link
'{{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}',
// Sign-up link
'{{fullurl:Special:UserLogin/signup|returnto={{FULLPAGENAMEE}}}}'
)->parseAsBlock();
}
if ( $parsed && $parsed['restoring'] ) {
$notices[] = $this->msg( 'editingold' )->parseAsBlock();