r96639 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96638‎ | r96639 | r96640 >
Date:01:01, 9 September 2011
Author:demon
Status:ok
Tags:
Comment:
Resolve fixme on r96249: can't use in static context
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -719,6 +719,7 @@
720720 * Construct a warning and a gallery from an array of duplicate files.
721721 */
722722 public static function getDupeWarning( $dupes ) {
 723+ global $wgOut;
723724 if( $dupes ) {
724725 $msg = '<gallery>';
725726 foreach( $dupes as $file ) {
@@ -729,7 +730,7 @@
730731 $msg .= '</gallery>';
731732 return '<li>' .
732733 wfMsgExt( 'file-exists-duplicate', array( 'parse' ), count( $dupes ) ) .
733 - $this->getOutput()->parse( $msg ) .
 734+ $wgOut->parse( $msg ) .
734735 "</li>\n";
735736 } else {
736737 return '';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r96249Use local context instead of global variablesialex19:28, 4 September 2011

Status & tagging log