r54895 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54894‎ | r54895 | r54896 >
Date:22:12, 12 August 2009
Author:tomasz
Status:resolved (Comments)
Tags:
Comment:
adding timestamps
Modified paths:
  • /trunk/extensions/ContributionTracking/ContributionTracking_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php
@@ -26,6 +26,8 @@
2727 }
2828
2929 $db = contributionTrackingConnection();
 30+
 31+ $ts = wfTimeStamp( 'TS_DB' );
3032
3133 $tracked_contribution = array(
3234 'note' => $wgRequest->getText('comment', NULL),
@@ -36,6 +38,7 @@
3739 'utm_campaign' => $wgRequest->getText('utm_campaign', NULL),
3840 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1),
3941 'language' => $wgRequest->getText('language', NULL),
 42+ 'ts' => $ts,
4043 );
4144
4245 // Make all empty strings NULL

Follow-up revisions

RevisionCommit summaryAuthorDate
r55206Merge r54895, r54909 -- save new timestamp fieldbrion21:39, 17 August 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   00:02, 13 August 2009

use $db->timestamp() here for the format...

Status & tagging log