r53532 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53531‎ | r53532 | r53533 >
Date:05:54, 20 July 2009
Author:aaron
Status:ok
Tags:
Comment:
Make --delete confirmation actually work
Modified paths:
  • /trunk/phase3/maintenance/deleteArchivedFiles.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/deleteArchivedFiles.inc
@@ -11,6 +11,10 @@
1212 require_once( "$IP/includes/filerepo/File.php" );
1313
1414 function DeleteArchivedFiles( $delete = false ) {
 15+ if( !$delete ) {
 16+ echo( "Use --delete to actually confirm this script\n" );
 17+ return;
 18+ }
1519 # Data should come off the master, wrapped in a transaction
1620 $dbw = wfGetDB( DB_MASTER );
1721 $dbw->begin();

Status & tagging log