mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Merge "api: Expand helppage url before passing to 'newarticletext'"
This commit is contained in:
commit
b990c427f2
|
@ -372,9 +372,9 @@ class ApiVisualEditor extends ApiBase {
|
|||
if ( !$title->exists() ) {
|
||||
$notices[] = $this->msg(
|
||||
$user->isLoggedIn() ? 'newarticletext' : 'newarticletextanon',
|
||||
Skin::makeInternalOrExternalUrl(
|
||||
wfExpandUrl( Skin::makeInternalOrExternalUrl(
|
||||
$this->msg( 'helppage' )->inContentLanguage()->text()
|
||||
)
|
||||
) )
|
||||
)->parseAsBlock();
|
||||
// Page protected from creation
|
||||
if ( $title->getRestrictions( 'create' ) ) {
|
||||
|
|
Loading…
Reference in a new issue