Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -532,7 +532,7 @@ |
533 | 533 | if ( $wgCheckFileExtensions ) { |
534 | 534 | if ( !$this->checkFileExtension( $this->mFinalExtension, $wgFileExtensions ) ) { |
535 | 535 | $warnings['filetype-unwanted-type'] = array( $this->mFinalExtension, |
536 | | - $wgLang->commaList( $wgFileExtensions ) ); |
| 536 | + $wgLang->commaList( $wgFileExtensions ), count( $wgFileExtensions ) ); |
537 | 537 | } |
538 | 538 | } |
539 | 539 | |
Index: trunk/phase3/includes/specials/SpecialUpload.php |
— | — | @@ -609,9 +609,9 @@ |
610 | 610 | // in a bit unlogical parameter sequence, but does not break |
611 | 611 | // old translations |
612 | 612 | if ( isset( $details['blacklistedExt'] ) ) { |
613 | | - $msg->numParams( count( $details['blacklistedExt'] ) ); |
| 613 | + $msg->params( count( $details['blacklistedExt'] ) ); |
614 | 614 | } else { |
615 | | - $msg->numParams( 1 ); |
| 615 | + $msg->params( 1 ); |
616 | 616 | } |
617 | 617 | |
618 | 618 | $this->showUploadError( $msg->parse() ); |