Shorter OutputPage access
Change-Id: Ieb7387ece84accdc96104b23b5c237973423f768
This commit is contained in:
parent
e44a89fb33
commit
ee76e16f64
1 changed files with 3 additions and 2 deletions
|
|
@ -1518,11 +1518,12 @@ class Article implements Page {
|
||||||
'namespace-' . $this->getTitle()->getNamespace() . '-helppage'
|
'namespace-' . $this->getTitle()->getNamespace() . '-helppage'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$out = $this->getContext()->getOutput();
|
||||||
if ( !$msg->isDisabled() ) {
|
if ( !$msg->isDisabled() ) {
|
||||||
$helpUrl = Skin::makeUrl( $msg->plain() );
|
$helpUrl = Skin::makeUrl( $msg->plain() );
|
||||||
$this->getOutput()->addHelpLink( $helpUrl, true );
|
$out->addHelpLink( $helpUrl, true );
|
||||||
} else {
|
} else {
|
||||||
$this->getOutput()->addHelpLink( $to, $overrideBaseUrl );
|
$out->addHelpLink( $to, $overrideBaseUrl );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue