default for new installations, it's important to have this text handy.
In addition, hid the "Upload file" link if uploads are disabled.
function quickBar()
{
global $wgOut, $wgTitle, $wgUser, $action, $wgLang;
- global $wpPreview;
+ global $wpPreview, $wgDisableUploads;
+
$fname = "Skin::quickBar";
wfProfileIn( $fname );
$s .= "\n<br><hr class='sep'>";
}
- if ( 0 != $wgUser->getID() ) {
+ if ( 0 != $wgUser->getID() && !$wgDisableUploads ) {
$s .= $this->specialLink( "upload" ) . $sep;
}
$s .= $this->specialLink( "specialpages" )
function quickBar()
{
- global $wgOut, $wgTitle, $wgUser, $wgLang;
+ global $wgOut, $wgTitle, $wgUser, $wgLang, $wgDisableUploads;
$tns=$wgTitle->getNamespace();
. $sep . $this->specialLink( "imagelist" )
. $sep . $this->specialLink( "statistics" )
. $sep . $this->bugReportsLink();
- if ( 0 != $wgUser->getID() ) {
+ if ( 0 != $wgUser->getID() && !$wgDisableUploads ) {
$s .= $sep . $this->specialLink( "upload" );
}
"uploadwarning" => "Upload warning",
"savefile" => "Save file",
"uploadedimage" => "uploaded \"$1\"",
-
+"uploaddisabled" => "Sorry, uploading is disabled.",
+
# Image list
#
"imagelist" => "Image list",