From: Ævar Arnfjörð Bjarmason Date: Thu, 10 Nov 2005 08:55:17 +0000 (+0000) Subject: * If uploading is disabled and $wgUploadNavigationUrl is set, still display the uploa... X-Git-Tag: 1.6.0~1198 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=ebfee565f65bd2176045dd0ec89c9ea7043f522f;p=lhc%2Fweb%2Fwiklou.git * If uploading is disabled and $wgUploadNavigationUrl is set, still display the upload link in the toolbox --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 7b333215b7..4c432d2f44 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -800,7 +800,10 @@ class SkinTemplate extends Skin { $nav_urls['upload'] = array('href' => $this->makeSpecialUrl('Upload')); } } else { - $nav_urls['upload'] = false; + if ($wgUploadNavigationUrl) + $nav_urls['upload'] = array('href' => $wgUploadNavigationUrl ); + else + $nav_urls['upload'] = false; } $nav_urls['specialpages'] = array('href' => $this->makeSpecialUrl('Specialpages'));