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:
4f21bb3
)
Fix autoblocks in r92480
author
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 18 Jul 2011 21:56:59 +0000
(21:56 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Mon, 18 Jul 2011 21:56:59 +0000
(21:56 +0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
c88ece7
..
1e535d8
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-643,8
+643,8
@@
class Block {
$autoblock->mHideName = $this->mHideName;
$autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) );
- $dbr = wfGetDB( DB_SLAVE );
- if ( $t
his->mExpiry == $dbr->getInfinity()
) {
+
$dbr = wfGetDB( DB_SLAVE );
+ if ( $t
imestamp == 'infinity'
) {
# Original block was indefinite, start an autoblock now
$autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp );
} else {