mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Update anoneditwarning message per core change"
This commit is contained in:
commit
2d92bdb9d1
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue