If you don't allow uploads ($wgEnableUploads = false in
LocalSettings.php), the link should be autmoatically hidden. If you want
to restrict the uploads, use the new $wgGroupPermissions in
LocalSettings.php ($wgGroupPermissions["user"]["upload"] = false, for
example), however it won't hide the upload link - see
http://bugzilla.wikimedia.org/show_bug.cgi?id=6021.
If you want to allow uploads but you don't want the link in the toolbox
to appear, I think you have to do that in includes/SkinTemplate.php, in
the function SkinTemplate::buildNavUrls (search for it): remove the line
"global $wgEnableUploads, $wgUploadNavigationUrl;", then remove the
"if"
block checks for $wgEnableUploads, and it should be hidden.
Roger Wesson wrote:
Hello all. I use MediaWiki on my website at
www.world-traveller.org,
and recently upgraded from 1.4.x to 1.6.5. On the new version, I can't
find the relevant code which puts the 'upload file' link in the toolbox.
I'd like to remove the link, if possible. Does anyone know how to get
rid of it?
Thanks very much,
Roger
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
--
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site
www.rotemliss.com