Remove @deprecated from wfTimestamp()
authorTim Starling <tstarling@wikimedia.org>
Fri, 7 Sep 2012 05:13:38 +0000 (15:13 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 7 Sep 2012 05:13:38 +0000 (15:13 +1000)
Adding abbreviated wrappers for lengthy function invocations is good
practice, it improves code readability. If all we ever had was
MWTimestamp, and we had a million instances of

$timestamp = new MWTimestamp( $ts );
$mwTimestamp = $timestamp->getTimestamp( TS_MW );

I would introduce a global function or class static method wrapper to
clean up those invocations. But I don't have to, because we already have
the wrapper.

Change-Id: I9149a7626676a0115a0a877f27d8b65e6e868de9

includes/GlobalFunctions.php

index 98bc65f..e600506 100644 (file)
@@ -2404,7 +2404,6 @@ define( 'TS_ISO_8601_BASIC', 9 );
 /**
  * Get a timestamp string in one of various formats
  *
- * @deprecated
  * @param $outputtype Mixed: A timestamp in one of the supported formats, the
  *                    function will autodetect which format is supplied and act
  *                    accordingly.