From: Chad Horohoe Date: Fri, 9 Sep 2011 01:01:30 +0000 (+0000) Subject: Resolve fixme on r96249: can't use in static context X-Git-Tag: 1.31.0-rc.0~27777 X-Git-Url: http://git.cyclocoop.org/data/modifier.php?a=commitdiff_plain;h=5e790333fb59d31c5063c524a8a3d283ad3a209d;p=lhc%2Fweb%2Fwiklou.git Resolve fixme on r96249: can't use in static context --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 84b15a8044..860fd451c6 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -719,6 +719,7 @@ class SpecialUpload extends SpecialPage { * Construct a warning and a gallery from an array of duplicate files. */ public static function getDupeWarning( $dupes ) { + global $wgOut; if( $dupes ) { $msg = ''; foreach( $dupes as $file ) { @@ -729,7 +730,7 @@ class SpecialUpload extends SpecialPage { $msg .= ''; return '
  • ' . wfMsgExt( 'file-exists-duplicate', array( 'parse' ), count( $dupes ) ) . - $this->getOutput()->parse( $msg ) . + $wgOut->parse( $msg ) . "
  • \n"; } else { return '';