Manual:$wgUploadMissingFileUrl

$wgUploadNavigationUrl was used before this setting (1.16 and below), and will be used if $wgUploadMissingFileUrl is not defined (from  onwards). For 1.17 and 1.18 you have to set $wgUploadMissingFileUrl.