MediaWiki r10907 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r10906‎ | r10907 (on ViewVC)‎ | r10908 >
Date:07:27, 5 September 2005
Author:vibber
Status:old
Tags:
Comment:
Live hack: don't blow up on empty/broken timestamps. (It will however output wrong date.)
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialExport.php
@@ -410,7 +410,7 @@
411411
412412 function wfTimestamp2ISO8601( $ts ) {
413413 #2003-08-05T18:30:02Z
414 - return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', $ts );
 414+ return preg_replace( '/^(....)(..)(..)(..)(..)(..)$/', '$1-$2-$3T$4:$5:$6Z', wfTimestamp( TS_MW, $ts ) );
415415 }
416416
417417 function xmlsafe( $string ) {

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r10907 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox