On Wed, Aug 18, 2004 at 11:41:08AM +0200, Marko Faas wrote:
Hello,
Is it possible to enable uploads of images only by sysops? (It probably
is, but some pointers in how to do that are very appreciated)
You can modify the function execute() in includes/SpecialUpload.php
### change this ###
if ( ( 0 == $wgUser->getID() )
or $wgUser->isBlocked() ) {
$wgOut->errorpage( "uploadnologin", "uploadnologintext" );
return;
}
## into this ##
if ( ! $wgUser->isSysop() ) {
$wgOut->sysopRequired();
return;
}
untested but should work
ciao, tom
--
== Weblinks ==
*
http://shop.wikipedia.org - WikiReader Internet zu kaufen
*
http://de.wikipedia.org/wiki/Benutzer:TomK32
*
http://www.hammererlehen.de - Urlaub in Berchtesgaden