mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Update anoneditwarning message per core change
Follows up I687e47c2 by James, approved by Bartosz. This should be merged before thursday. Change-Id: Ia28f59a341e1a04b4d143abbfe5c63e4a420056f
This commit is contained in:
parent
acb59eac90
commit
100b70bd50
|
@ -315,7 +315,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();
|
||||
|
|
Loading…
Reference in a new issue