r98408 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98407‎ | r98408 | r98409 >
Date:15:07, 29 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Follow-up r89568: use local context instead of $wgOut
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -690,14 +690,14 @@
691691 * @param $params array
692692 */
693693 protected function addFeedLinks( $params ) {
694 - global $wgFeedClasses, $wgOut;
 694+ global $wgFeedClasses;
695695
696696 $feedTemplate = wfScript( 'api' ) . '?';
697697
698698 foreach( $wgFeedClasses as $format => $class ) {
699699 $theseParams = $params + array( 'feedformat' => $format );
700700 $url = $feedTemplate . wfArrayToCGI( $theseParams );
701 - $wgOut->addFeedLink( $format, $url );
 701+ $this->getOutput()->addFeedLink( $format, $url );
702702 }
703703 }
704704 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89568Refactoring to r89566...reedy15:07, 6 June 2011

Status & tagging log