Martineznovo has uploaded a new change for review.
https://gerrit.wikimedia.org/r/139409
Change subject: Fix Call to undefined method Block::infinity()
......................................................................
Fix Call to undefined method Block::infinity()
Method Block::infinity() was deprecated since 1.18 and removed in 1.23
Replaced calls to Block::infinity() with wfGetDB( DB_SLAVE )->getInfinity();
which was the implementation of that method in 1.22
Change-Id: Ife3dd30ed33dcf57b28b0d24eeca2026eee78ce4
---
M BanPests.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlockAndNuke
refs/changes/09/139409/1
diff --git a/BanPests.php b/BanPests.php
index d00e420..92c15b6 100644
--- a/BanPests.php
+++ b/BanPests.php
@@ -106,7 +106,7 @@
if( !Block::newFromTarget( $ip ) ) {
$blk = new Block( $ip, null,
$banningUser->getID(),
wfMsg('blockandnuke-message'),
- wfTimestamp(), 0, Block::infinity(), 0,
1, 0, 0, 1);
+ wfTimestamp(), 0, wfGetDB( DB_SLAVE
)->getInfinity(), 0, 1, 0, 0, 1);
$blk->isAutoBlocking( true );
if( $blk->insert() ) {
$log = new LogPage('block');
@@ -133,7 +133,7 @@
if( !Block::newFromTarget( $user->getName() ) ) {
$blk = new Block($user->getName(),
$user->getId(),
$banningUser->getID(),
wfMsg('blockandnuke-message'),
- wfTimestamp(), 0, Block::infinity(), 0,
1, 0, 0, 1);
+ wfTimestamp(), 0, wfGetDB( DB_SLAVE
)->getInfinity(), 0, 1, 0, 0, 1);
$blk->isAutoBlocking( true );
if($ret = $blk->insert()) {
$log = new LogPage('block');
--
To view, visit https://gerrit.wikimedia.org/r/139409
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ife3dd30ed33dcf57b28b0d24eeca2026eee78ce4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlockAndNuke
Gerrit-Branch: master
Gerrit-Owner: Martineznovo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits