From: Federico Leva Date: Fri, 15 May 2015 12:52:08 +0000 (+0200) Subject: Shorter OutputPage access X-Git-Tag: 1.31.0-rc.0~11400 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=ee76e16f649aeb0622c2b73c161617ec91b0bff8;p=lhc%2Fweb%2Fwiklou.git Shorter OutputPage access Change-Id: Ieb7387ece84accdc96104b23b5c237973423f768 --- diff --git a/includes/page/Article.php b/includes/page/Article.php index d243b557e3..f6074eba1e 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -1518,11 +1518,12 @@ class Article implements Page { 'namespace-' . $this->getTitle()->getNamespace() . '-helppage' ); + $out = $this->getContext()->getOutput(); if ( !$msg->isDisabled() ) { $helpUrl = Skin::makeUrl( $msg->plain() ); - $this->getOutput()->addHelpLink( $helpUrl, true ); + $out->addHelpLink( $helpUrl, true ); } else { - $this->getOutput()->addHelpLink( $to, $overrideBaseUrl ); + $out->addHelpLink( $to, $overrideBaseUrl ); } }