r23054 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23053‎ | r23054 | r23055 >
Date:04:03, 18 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Bug fix
Modified paths:
  • /branches/phase3_rev_deleted/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: branches/phase3_rev_deleted/includes/ImagePage.php
@@ -542,7 +542,7 @@
543543 # Deleting old images doesn't require confirmation
544544 if ( !is_null( $oldimage ) || $confirm ) {
545545 if( $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ), $oldimage ) ) {
546 - $this->doDeleteImage( $reason );
 546+ $this->doDeleteImage( $reason, $suppress );
547547 } else {
548548 $wgOut->showFatalError( wfMsg( 'sessionfailure' ) );
549549 }
@@ -566,7 +566,7 @@
567567 *
568568 * @param $reason User provided reason for deletion.
569569 */
570 - function doDeleteImage( $reason ) {
 570+ function doDeleteImage( $reason, $suppress = false ) {
571571 global $wgOut, $wgRequest;
572572
573573 $oldimage = $wgRequest->getVal( 'oldimage' );

Status & tagging log