r58428 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58427‎ | r58428 | r58429 >
Date:13:55, 2 November 2009
Author:yaron
Status:deferred
Tags:
Comment:
Added handling for 'default=now', accidentally removed in previous date restructuring
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormInputs.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc
@@ -463,6 +463,8 @@
464464 $month = $date['month'];
465465 $day = $date['day'];
466466 } else {
 467+ // handle 'default=now'
 468+ if ($date == 'now') $date = date('Y/m/d');
467469 $actual_date = new SMWTimeValue('_dat');
468470 $actual_date->setUserValue($date);
469471 $year = $actual_date->getYear();

Status & tagging log