From 1eb5110348a2ba9de583eb48e5ae6afe9808a9cd Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 29 Sep 2011 15:07:13 +0000 Subject: [PATCH] Follow-up r89568: use local context instead of $wgOut --- includes/SpecialPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index b943b51b7e..872a493734 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -690,14 +690,14 @@ class SpecialPage { * @param $params array */ protected function addFeedLinks( $params ) { - global $wgFeedClasses, $wgOut; + global $wgFeedClasses; $feedTemplate = wfScript( 'api' ) . '?'; foreach( $wgFeedClasses as $format => $class ) { $theseParams = $params + array( 'feedformat' => $format ); $url = $feedTemplate . wfArrayToCGI( $theseParams ); - $wgOut->addFeedLink( $format, $url ); + $this->getOutput()->addFeedLink( $format, $url ); } } } -- 2.20.1