was denied to users(img_auth only)
* (bug 19646) $wgImgAuthPublicTest added to test to see if img_auth set up
correctly (img_auth only)
+* $wgUploadMaintenance added to disable file deletions and restorations during
+ maintenance
=== New features in 1.16 ===
*/
$wgUseAJAXCategories = false;
-// to disable image delete/restore temporarily
+/**
+ * To disable file delete/restore temporarily
+ */
$wgUploadMaintenance = false;
global $wgUploadMaintenance;
if( $wgUploadMaintenance && $this->mTitle && $this->mTitle->getNamespace() == NS_FILE ) {
global $wgOut;
- $wgOut->addWikiText('Deletion and restoration of images temporarily disabled during maintenance.' );
+ $wgOut->wrapWikiMsg( "<div class='error'>\n$1</div>\n", array( 'filedelete-maintenance' ) );
return;
}
if( $this->mRestore && $this->mAction == "submit" ) {
global $wgUploadMaintenance;
if( $wgUploadMaintenance && $this->mTargetObj && $this->mTargetObj->getNamespace() == NS_FILE ) {
- $wgOut->addWikiText('Deletion and restoration of images temporarily disabled during maintenance.' );
+ $wgOut->wrapWikiMsg( "<div class='error'>\n$1</div>\n", array( 'filedelete-maintenance' ) );
return;
}
return $this->undelete();
** Copyright violation
** Duplicated file',
'filedelete-edit-reasonlist' => 'Edit delete reasons',
+'filedelete-maintenance' => 'Deletion and restoration of files temporarily disabled during maintenance.',
# MIME search
'mimesearch' => 'MIME search',
'filedelete-reason-otherlist',
'filedelete-reason-dropdown',
'filedelete-edit-reasonlist',
+ 'filedelete-maintenance',
),
'mimesearch' => array(
'mimesearch',