Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -719,6 +719,7 @@ |
720 | 720 | * Construct a warning and a gallery from an array of duplicate files. |
721 | 721 | */ |
722 | 722 | public static function getDupeWarning( $dupes ) { |
| 723 | + global $wgOut; |
723 | 724 | if( $dupes ) { |
724 | 725 | $msg = '<gallery>'; |
725 | 726 | foreach( $dupes as $file ) { |
— | — | @@ -729,7 +730,7 @@ |
730 | 731 | $msg .= '</gallery>'; |
731 | 732 | return '<li>' . |
732 | 733 | wfMsgExt( 'file-exists-duplicate', array( 'parse' ), count( $dupes ) ) . |
733 | | - $this->getOutput()->parse( $msg ) . |
| 734 | + $wgOut->parse( $msg ) . |
734 | 735 | "</li>\n"; |
735 | 736 | } else { |
736 | 737 | return ''; |