r60771 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60770‎ | r60771 | r60772 >
Date:07:09, 7 January 2010
Author:robla
Status:deferred
Tags:
Comment:
Abort OldLocalFile::upgradeRow() when archive_name missing
Modified paths:
  • /branches/extensionless-files/includes/filerepo/OldLocalFile.php (modified) (history)

Diff [purge]

Index: branches/extensionless-files/includes/filerepo/OldLocalFile.php
@@ -148,6 +148,11 @@
149149 wfProfileOut( __METHOD__ );
150150 return;
151151 }
 152+ if ( empty( $this->archive_name ) ) {
 153+ wfDebug( __METHOD__.": archive name missing, aborting\n" );
 154+ wfProfileOut( __METHOD__ );
 155+ return;
 156+ }
152157
153158 $dbw = $this->repo->getMasterDB();
154159 list( $major, $minor ) = self::splitMime( $this->mime );

Status & tagging log