From: Thiemo Kreuz Date: Mon, 16 Apr 2018 17:30:07 +0000 (+0200) Subject: Fix bad archive file names in ImportableUploadRevisionImporter X-Git-Tag: 1.34.0-rc.0~5699^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=f449e1ce7c0f4092f8cb39e5a54489387ae35d45;p=lhc%2Fweb%2Fwiklou.git Fix bad archive file names in ImportableUploadRevisionImporter Bug: T176871 Change-Id: I61625a515a8d49dec33af49022506be2e019a23b --- diff --git a/includes/import/ImportableUploadRevisionImporter.php b/includes/import/ImportableUploadRevisionImporter.php index 495b3d60b3..b64114cf87 100644 --- a/includes/import/ImportableUploadRevisionImporter.php +++ b/includes/import/ImportableUploadRevisionImporter.php @@ -50,7 +50,7 @@ class ImportableUploadRevisionImporter implements UploadRevisionImporter { $file->load( File::READ_LATEST ); $this->logger->debug( __METHOD__ . 'Importing new file as ' . $file->getName() . "\n" ); if ( $file->exists() && $file->getTimestamp() > $importableRevision->getTimestamp() ) { - $archiveName = $file->getTimestamp() . '!' . $file->getName(); + $archiveName = $importableRevision->getTimestamp() . '!' . $file->getName(); $file = OldLocalFile::newFromArchiveName( $importableRevision->getTitle(), RepoGroup::singleton()->getLocalRepo(), $archiveName ); $this->logger->debug( __METHOD__ . "File already exists; importing as $archiveName\n" );