Page MenuHomePhabricator

Clean up `wgNamespacesWithSubpages` to remove unneeded entries
Closed, ResolvedPublic

Description

Currently, NS_FILE does not have subpages enabled.

Defines.php includes define( 'NS_FILE', 6 );

A number of wikis listed in wgNamespacesWithSubpages specifically declare that there should not be subpages in ns 6 (6 => 0) despite this already being the case. There are other such duplications, but this is the most common. These statements are extraneous and should be removed, both for code readability and because they unnecessarily bloat the size of InitialiseSettings.php.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 521390 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[operations/mediawiki-config@master] Clean up wgNamespacesWithSubpages to remove unneeded entries

https://gerrit.wikimedia.org/r/521390

Change 521390 merged by jenkins-bot:
[operations/mediawiki-config@master] Clean up wgNamespacesWithSubpages to remove unneeded entries

https://gerrit.wikimedia.org/r/521390

Mentioned in SAL (#wikimedia-operations) [2019-07-09T11:11:20Z] <urbanecm@deploy1001> Synchronized wmf-config/InitialiseSettings.php: SWAT: [[:gerrit:521390|Clean up wgNamespacesWithSubpages to remove unneeded entries]] (T227546) (duration: 00m 49s)