http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96639
Revision: 96639
Author: demon
Date: 2011-09-09 01:01:30 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
Resolve fixme on r96249: can't use in static context
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialUpload.php
Modified: trunk/phase3/includes/specials/SpecialUpload.php
===================================================================
--- trunk/phase3/includes/specials/SpecialUpload.php 2011-09-09 00:47:02 UTC
(rev 96638)
+++ trunk/phase3/includes/specials/SpecialUpload.php 2011-09-09 01:01:30 UTC
(rev 96639)
@@ -719,6 +719,7 @@
* Construct a warning and a gallery from an array of duplicate files.
*/
public static function getDupeWarning( $dupes ) {
+ global $wgOut;
if( $dupes ) {
$msg = '<gallery>';
foreach( $dupes as $file ) {
@@ -729,7 +730,7 @@
$msg .= '</gallery>';
return '<li>' .
wfMsgExt( 'file-exists-duplicate', array(
'parse' ), count( $dupes ) ) .
- $this->getOutput()->parse( $msg ) .
+ $wgOut->parse( $msg ) .
"</li>\n";
} else {
return '';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs