* (bug 578): renamed $wgDisableUploads => $wgEnableUploads
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 1 Apr 2005 19:55:45 +0000 (19:55 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 1 Apr 2005 19:55:45 +0000 (19:55 +0000)
config/index.php
includes/DefaultSettings.php
includes/SkinTemplate.php
includes/SpecialSitesettings.php
includes/SpecialUpload.php
skins/CologneBlue.php
skins/Standard.php

index 64bddea..bb59029 100644 (file)
@@ -1084,7 +1084,7 @@ if ( \$wgCommandLineMode ) {
 
 ## To enable image uploads, make sure the 'images' directory
 ## is writable, then uncomment this:
-# \$wgDisableUploads           = false;
+# \$wgEnableUploads            = true;
 \$wgUseImageResize             = {$conf->UseImageResize};
 {$magic}\$wgUseImageMagick = true;
 {$magic}\$wgImageMagickConvertCommand = \"{$convert}\";
index 73c858a..da27dda 100644 (file)
@@ -727,7 +727,7 @@ $wgDisableTextSearch = false;
  */
 $wgDisableSearchUpdate = false;
 /** Uploads have to be specially set up to be secure */
-$wgDisableUploads = true;
+$wgEnableUploads = false;
 /**
  * Set to true to enable the upload _link_ while local uploads are disabled.
  * Assumes that the special page link will be bounced to another server where
index 476af9c..c9f0233 100644 (file)
@@ -724,7 +724,7 @@ class SkinTemplate extends Skin {
                wfProfileIn( $fname );
                
                global $wgUser, $wgRequest;
-               global $wgSiteSupportPage, $wgDisableUploads;
+               global $wgSiteSupportPage, $wgEnableUploads;
 
                $action = $wgRequest->getText( 'action' );
                $oldid = $wgRequest->getVal( 'oldid' );
@@ -740,7 +740,7 @@ class SkinTemplate extends Skin {
                // $nav_urls['sitesupport'] = array('href' => $this->makeI18nUrl('sitesupportpage'));
                $nav_urls['sitesupport'] = array('href' => $wgSiteSupportPage);
                $nav_urls['help'] = array('href' => $this->makeI18nUrl('helppage'));
-               if( $this->loggedin && !$wgDisableUploads ) {
+               if( $this->loggedin && $wgEnableUploads ) {
                        $nav_urls['upload'] = array('href' => $this->makeSpecialUrl('Upload'));
                } else {
                        $nav_urls['upload'] = false;
index 7438e14..87f5559 100644 (file)
@@ -109,7 +109,7 @@ class SiteSettingsForm extends HTMLForm {
                $wgOut->addHTML( $this->fieldset( "sitesettings-images" ,
                        $this->checkbox( 'wgAllowExternalImages' ) .
                        $this->fieldset( 'sitesettings-images-upload' ,
-                               $this->checkbox( 'wgDisableUploads' ) .
+                               $this->checkbox( 'wgEnableUploads' ) .
                                $this->checkbox( 'wgRemoteUploads' ) .
                                $this->arraybox( 'wgFileExtensions' ) .
                                $this->arraybox( 'wgFileBlacklist' ) .
index 0b53dbd..89509de 100644 (file)
@@ -88,10 +88,10 @@ class UploadForm {
         */
        function execute() {
                global $wgUser, $wgOut;
-               global $wgDisableUploads;
+               global $wgEnableUploads;
 
                /** Show an error message if file upload is disabled */ 
-               if( $wgDisableUploads ) {
+               if( ! $wgEnableUploads ) {
                        $wgOut->addWikiText( wfMsg( 'uploaddisabled' ) );
                        return;
                }
index 8571b4b..1481cb8 100644 (file)
@@ -171,7 +171,7 @@ class SkinCologneBlue extends Skin {
         */
        function quickBar()
        {
-               global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads, $wgNavigationLinks;
+               global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgEnableUploads, $wgNavigationLinks;
 
                $tns=$wgTitle->getNamespace();
 
@@ -268,7 +268,7 @@ class SkinCologneBlue extends Skin {
                  . $sep . $this->specialLink( "imagelist" ) 
                  . $sep . $this->specialLink( "statistics" ) 
                  . $sep . $this->bugReportsLink();
-               if ( $wgUser->isLoggedIn() && !$wgDisableUploads ) {
+               if ( $wgUser->isLoggedIn() && $wgEnableUploads ) {
                        $s .= $sep . $this->specialLink( "upload" );
                }
                global $wgSiteSupportPage;
index 820b9f4..7579bdc 100644 (file)
@@ -132,7 +132,7 @@ class SkinStandard extends Skin {
 
        function quickBar() {
                global $wgOut, $wgTitle, $wgUser, $wgRequest, $wgContLang;
-               global $wgDisableUploads, $wgRemoteUploads, $wgNavigationLinks;
+               global $wgEnableUploads, $wgRemoteUploads, $wgNavigationLinks;
 
                $fname =  'Skin::quickBar';
                wfProfileIn( $fname );
@@ -261,7 +261,7 @@ class SkinStandard extends Skin {
                        $s .= "\n<br /><hr class='sep' />";
                }
 
-               if ( $wgUser->isLoggedIn() && ( !$wgDisableUploads || $wgRemoteUploads ) ) {
+               if ( $wgUser->isLoggedIn() && ( $wgEnableUploads || $wgRemoteUploads ) ) {
                        $s .= $this->specialLink( 'upload' ) . $sep;
                }
                $s .= $this->specialLink( 'specialpages' )