X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FBlock.php;h=2c935df8ec5d58e18be8e1d64f89bd63acb2714d;hb=4fad94948359ab67e312355534977138754c123b;hp=0b7f7b254460cef28a9aa075a82fe00c69a4230e;hpb=a4943f548be4cfc8f286f00fc8064ff0e377f2ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Block.php b/includes/Block.php index 0b7f7b2544..2c935df8ec 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -710,7 +710,7 @@ class Block { // than getting the msg raw and explode()'ing it. $cache = MediaWikiServices::getInstance()->getMainWANObjectCache(); $lines = $cache->getWithSetCallback( - wfMemcKey( 'ipb', 'autoblock', 'whitelist' ), + $cache->makeKey( 'ipb', 'autoblock', 'whitelist' ), $cache::TTL_DAY, function ( $curValue, &$ttl, array &$setOpts ) { $setOpts += Database::getCacheSetOptions( wfGetDB( DB_REPLICA ) ); @@ -829,7 +829,6 @@ class Block { * @return bool */ public function deleteIfExpired() { - if ( $this->isExpired() ) { wfDebug( "Block::deleteIfExpired() -- deleting\n" ); $this->delete(); @@ -1111,7 +1110,6 @@ class Block { * not be the same as the target you gave if you used $vagueTarget! */ public static function newFromTarget( $specificTarget, $vagueTarget = null, $fromMaster = false ) { - list( $target, $type ) = self::parseTarget( $specificTarget ); if ( $type == Block::TYPE_ID || $type == Block::TYPE_AUTO ) { return Block::newFromID( $target );