dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82e2f7e
)
(Bug 26425) Due to r71751, wfTimestamp stopped accepting '' to mean get
author
Brian Wolff
<bawolff@users.mediawiki.org>
Sun, 26 Dec 2010 04:38:41 +0000
(
04:38
+0000)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
17ebeb2
..
7c5f0dd
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-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;