Moved wfTimestampNow() near other wfTimestamp() functions
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 5 May 2011 17:42:14 +0000 (17:42 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 5 May 2011 17:42:14 +0000 (17:42 +0000)
includes/GlobalFunctions.php

index 2c2accc..93470c1 100644 (file)
@@ -1849,16 +1849,6 @@ function wfArrayLookup( $a, $b ) {
        return array_flip( array_intersect( array_flip( $a ), array_keys( $b ) ) );
 }
 
-/**
- * Convenience function; returns MediaWiki timestamp for the present time.
- *
- * @return string
- */
-function wfTimestampNow() {
-       # return NOW
-       return wfTimestamp( TS_MW, time() );
-}
-
 /**
  * Reference-counted warning suppression
  *
@@ -2094,6 +2084,16 @@ function wfTimestampOrNull( $outputtype = TS_UNIX, $ts = null ) {
        }
 }
 
+/**
+ * Convenience function; returns MediaWiki timestamp for the present time.
+ *
+ * @return string
+ */
+function wfTimestampNow() {
+       # return NOW
+       return wfTimestamp( TS_MW, time() );
+}
+
 /**
  * Check if the operating system is Windows
  *