From: Tim Starling Date: Fri, 7 Sep 2012 05:13:38 +0000 (+1000) Subject: Remove @deprecated from wfTimestamp() X-Git-Tag: 1.31.0-rc.0~22440 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=653ee32ed29bbdd4af5734148bb11b2e5b36e59c;p=lhc%2Fweb%2Fwiklou.git Remove @deprecated from wfTimestamp() 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 --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 98bc65fc49..e600506e40 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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.