Resolve fixme on r96249: can't use in static context
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Sep 2011 01:01:30 +0000 (01:01 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 9 Sep 2011 01:01:30 +0000 (01:01 +0000)
includes/specials/SpecialUpload.php

index 84b15a8..860fd45 100644 (file)
@@ -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 = '<gallery>';
                        foreach( $dupes as $file ) {
@@ -729,7 +730,7 @@ class SpecialUpload extends SpecialPage {
                        $msg .= '</gallery>';
                        return '<li>' .
                                wfMsgExt( 'file-exists-duplicate', array( 'parse' ), count( $dupes ) ) .
-                               $this->getOutput()->parse( $msg ) .
+                               $wgOut->parse( $msg ) .
                                "</li>\n";
                } else {
                        return '';