On Tue, Feb 14, 2023 at 3:30 PM Bartosz DziewoĆski <matma.rex(a)gmail.com> wrote:
"NS_FILE" was introduced to replace "NS_IMAGE" in MediaWiki 1.14,
which
was released in 2009, fourteen years ago.
And in 14 years, Mediawiki has never warned users about it.
The first time we learn about these things in practice is when
something breaks. Usually after an upgrade.
The devs really need to supply a linter that we can run on
LocalSettings.php so we can discover the problems earlier than "it
broke after an upgrade." And hopefully the linter will suggest the
next step, like renaming NS_IMAGE to NS_FILE.
Jeff