Merge "api: Expand helppage url before passing to 'newarticletext'"

This commit is contained in:
jenkins-bot 2015-05-06 20:31:28 +00:00 committed by Gerrit Code Review
commit b990c427f2

View file

@ -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' ) ) {