r87499 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87498‎ | r87499 | r87500 >
Date:17:42, 5 May 2011
Author:ialex
Status:ok
Tags:
Comment:
Moved wfTimestampNow() near other wfTimestamp() functions
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -1850,16 +1850,6 @@
18511851 }
18521852
18531853 /**
1854 - * Convenience function; returns MediaWiki timestamp for the present time.
1855 - *
1856 - * @return string
1857 - */
1858 -function wfTimestampNow() {
1859 - # return NOW
1860 - return wfTimestamp( TS_MW, time() );
1861 -}
1862 -
1863 -/**
18641854 * Reference-counted warning suppression
18651855 *
18661856 * @param $end Bool
@@ -2095,6 +2085,16 @@
20962086 }
20972087
20982088 /**
 2089+ * Convenience function; returns MediaWiki timestamp for the present time.
 2090+ *
 2091+ * @return string
 2092+ */
 2093+function wfTimestampNow() {
 2094+ # return NOW
 2095+ return wfTimestamp( TS_MW, time() );
 2096+}
 2097+
 2098+/**
20992099 * Check if the operating system is Windows
21002100 *
21012101 * @return Bool: true if it's Windows, False otherwise.

Status & tagging log