r98919 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98918‎ | r98919 | r98920 >
Date:21:04, 4 October 2011
Author:aaron
Status:ok
Tags:
Comment:
Fix r98904: use a date function that actually exists in the context (formats as ISO 8601)
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/switchAllMediaWikis (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/switchAllMediaWikis
@@ -52,7 +52,8 @@
5353 }
5454
5555 # Backup old wikiversions.dat...
56 - $backupPath = "$common/multiversion/backup/wikiversions-" . wfTimestampNow() . ".dat";
 56+ $timestamp = date( 'c' ); // ISO 8601
 57+ $backupPath = "$common/multiversion/backup/wikiversions-$timestamp.dat";
5758 if ( !copy( $datPath, $backupPath ) ) {
5859 die( "Unable to write backup file `$backupPath`.\n" );
5960 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98904Use wfTimestampNow() for more readable timestamps in the backup file namesaaron20:42, 4 October 2011

Status & tagging log