Manual:$wgUseInstantCommons

Usage
Add to your :

Details
Settings this variable to true allows to automatically use in the local wiki images hosted in c>commons:|Wikimedia Commons.

It is a shorthand for the following setting to  :