/** * Set this to false if you do not want MediaWiki to divide your images * directory into many subdirectories, for improved performance. * * It's almost always good to leave this enabled. In previous versions of * MediaWiki, some users set this to false to allow images to be added to the * wiki by simply copying them into $wgUploadDirectory and then running * maintenance/rebuildImages.php to register them in the database. This is no * longer recommended, use maintenance/importImages.php instead. * * @note That this variable may be ignored if $wgLocalFileRepo is set. * @todo Deprecate the setting and ultimately remove it from Core. */ $wgHashedUploadDirectory = true;
$wgHashedUploadDirectory is just convenience for setting $wgLocalFileRepo (and the same goes for $wgHashedSharedUploadDirectory and $wgForeignFileRepos) so (as proposed) this wouldn't change the fact that a file repo can have an arbitrary level of hash directories (including zero).
What would be the migration path for wikis which currently set this to false?
It's enabled on all WMF wikis and in MW core by default, so, I hope not?
Anyhow, declining this as there is very little to gain by removing the alias, and it's something that breaks badly for an affected wiki. We can move it out of Setup.php to the code that handles it to reduce init impact, though. But that can happen separately and isn't a priority for simple 1-1 mappings like this, which are cheap.