## 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}\";
*/
$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
wfProfileIn( $fname );
global $wgUser, $wgRequest;
- global $wgSiteSupportPage, $wgDisableUploads;
+ global $wgSiteSupportPage, $wgEnableUploads;
$action = $wgRequest->getText( 'action' );
$oldid = $wgRequest->getVal( 'oldid' );
// $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;
$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' ) .
*/
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;
}
*/
function quickBar()
{
- global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgDisableUploads, $wgNavigationLinks;
+ global $wgOut, $wgTitle, $wgUser, $wgLang, $wgContLang, $wgEnableUploads, $wgNavigationLinks;
$tns=$wgTitle->getNamespace();
. $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;
function quickBar() {
global $wgOut, $wgTitle, $wgUser, $wgRequest, $wgContLang;
- global $wgDisableUploads, $wgRemoteUploads, $wgNavigationLinks;
+ global $wgEnableUploads, $wgRemoteUploads, $wgNavigationLinks;
$fname = 'Skin::quickBar';
wfProfileIn( $fname );
$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' )