Author: mediawiki
Description:
... The warning in question is for example
(example)
".txt" is an unwanted file type. Preferred file types are $2.
(/example)
Note the $2.
Version: 1.16.x
Severity: minor
Author: mediawiki
Description:
... The warning in question is for example
(example)
".txt" is an unwanted file type. Preferred file types are $2.
(/example)
Note the $2.
Version: 1.16.x
Severity: minor
Confirmed still present in trunk.
Looks like the warning message gets set in UploadBase::checkWarnings(), but parameters for those messages don't get added until output time in SpecialUpload::showUploadWarning.
That function has some special cases for specific warning messages to customize the output; the one to watch for is 'filetype-unwanted-type'.
The similar 'filetype-banned-type' message is processed separately in SpecialUpload::processVerificationError, so may need some common list building.