Also use params() insted of numParams() on an ocassion, as it's not really needed there
// in a bit unlogical parameter sequence, but does not break
// old translations
if ( isset( $details['blacklistedExt'] ) ) {
- $msg->numParams( count( $details['blacklistedExt'] ) );
+ $msg->params( count( $details['blacklistedExt'] ) );
} else {
- $msg->numParams( 1 );
+ $msg->params( 1 );
}
$this->showUploadError( $msg->parse() );
if ( $wgCheckFileExtensions ) {
if ( !$this->checkFileExtension( $this->mFinalExtension, $wgFileExtensions ) ) {
$warnings['filetype-unwanted-type'] = array( $this->mFinalExtension,
- $wgLang->commaList( $wgFileExtensions ) );
+ $wgLang->commaList( $wgFileExtensions ), count( $wgFileExtensions ) );
}
}