Manual:$wgUseInstantCommons/en

Usage
Add to your LocalSettings.php:

Details
Settings this variable to true allows to automatically use in the local wiki images hosted in Wikimedia Commons.

It is a shorthand for 'hashLevels' was introduced in MediaWiki 1.16.

See Manual:$wgForeignFileRepos for details.