r98904 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98903‎ | r98904 | r98905 >
Date:20:42, 4 October 2011
Author:aaron
Status:resolved
Tags:
Comment:
Use wfTimestampNow() for more readable timestamps in the backup file names
Modified paths:
  • /trunk/tools/mwmultiversion/multiversion/switchAllMediaWikis (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/multiversion/switchAllMediaWikis
@@ -52,7 +52,7 @@
5353 }
5454
5555 # Backup old wikiversions.dat...
56 - $backupPath = "$common/multiversion/backup/wikiversions-" . time() . ".dat";
 56+ $backupPath = "$common/multiversion/backup/wikiversions-" . wfTimestampNow() . ".dat";
5757 if ( !copy( $datPath, $backupPath ) ) {
5858 die( "Unable to write backup file `$backupPath`.\n" );
5959 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r98919Fix r98904: use a date function that actually exists in the context (formats ...aaron21:04, 4 October 2011

Status & tagging log