Fatal error: Using $this when not in object context in /usr/local/apache/common-local/php-1.22wmf13/includes/specials/SpecialUpload.php on line 686
/**
- Construct a warning and a gallery from an array of duplicate files.
- @param $dupes array
- @return string
*/
public static function getDupeWarning( $dupes ) {
if ( !$dupes ) { return ''; } $gallery = ImageGalleryBase::factory(); $gallery->setContext( $this->getContext() ); $gallery->setShowBytes( false ); foreach ( $dupes as $file ) { $gallery->add( $file->getTitle() ); } return '<li>' . wfMessage( 'file-exists-duplicate' )->numParams( count( $dupes ) )->parse() . $gallery->toHtml() . "</li>\n";
}
Version: 1.22.0
Severity: normal