Manual:$wgAllowExternalImages

Details
Whether to allow inline images hosted on external websites, sometimes called hotlinking.

In later versions, 1.6.8 ?, it was set as automatically disabled. When disabled, it just links to the image.