(Bug 26425) Due to r71751, wfTimestamp stopped accepting '' to mean get
authorBrian Wolff <bawolff@users.mediawiki.org>
Sun, 26 Dec 2010 04:38:41 +0000 (04:38 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sun, 26 Dec 2010 04:38:41 +0000 (04:38 +0000)
current timestamp. This caused Block::__construct to put all sort of
messages in the debug log about invalid timestamp. So change Block to use
timestamp of 0 instead of '' if unspecified.

includes/Block.php

index 17ebeb2..7c5f0dd 100644 (file)
@@ -24,7 +24,7 @@ class Block {
        const EB_RANGE_ONLY = 4;
 
        function __construct( $address = '', $user = 0, $by = 0, $reason = '',
-               $timestamp = '' , $auto = 0, $expiry = '', $anonOnly = 0, $createAccount = 0, $enableAutoblock = 0,
+               $timestamp = 0, $auto = 0, $expiry = '', $anonOnly = 0, $createAccount = 0, $enableAutoblock = 0,
                $hideName = 0, $blockEmail = 0, $allowUsertalk = 0, $byName = false )
        {
                $this->mId = 0;