Fix bug introduced in r77171
authorPlatonides <platonides@users.mediawiki.org>
Sun, 28 Nov 2010 22:40:29 +0000 (22:40 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 28 Nov 2010 22:40:29 +0000 (22:40 +0000)
includes/GlobalFunctions.php

index 80093ca..771c009 100644 (file)
@@ -1990,6 +1990,7 @@ function wfTimestamp( $outputtype = TS_UNIX, $ts = 0 ) {
        
        if ( $ts === 0 ) {
                $uts = time();
+               $strtime = "@$ts";
        } elseif ( preg_match( '/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)$/D', $ts, $da ) ) {
                # TS_DB
        } elseif ( preg_match( '/^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d):(\d\d)$/D', $ts, $da ) ) {