From: Aaron Schulz Date: Mon, 28 Jul 2014 19:03:58 +0000 (-0700) Subject: Fixed use of wrong class constant X-Git-Tag: 1.31.0-rc.0~14670^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=bc5e7d037afdaf46cfd9e71df0638c03f5b04ab1;p=lhc%2Fweb%2Fwiklou.git Fixed use of wrong class constant Change-Id: I6c7e49d16685315f9e84b61ba11d1a3b08730597 --- diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index fce30fb52e..c4301eed9d 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -281,7 +281,7 @@ class JobQueueFederated extends JobQueue { } if ( $ok ) { $key = $this->getCacheKey( 'empty' ); - $this->cache->set( $key, 'false', JobQueueDB::CACHE_TTL_LONG ); + $this->cache->set( $key, 'false', self::CACHE_TTL_LONG ); } else { if ( !$partitionRing->ejectFromLiveRing( $partition, 5 ) ) { // blacklist throw new JobQueueError( "Could not insert job(s), no partitions available." ); @@ -303,7 +303,7 @@ class JobQueueFederated extends JobQueue { } if ( $ok ) { $key = $this->getCacheKey( 'empty' ); - $this->cache->set( $key, 'false', JobQueueDB::CACHE_TTL_LONG ); + $this->cache->set( $key, 'false', self::CACHE_TTL_LONG ); } else { if ( !$partitionRing->ejectFromLiveRing( $partition, 5 ) ) { // blacklist throw new JobQueueError( "Could not insert job(s), no partitions available." ); @@ -345,7 +345,7 @@ class JobQueueFederated extends JobQueue { $this->throwErrorIfAllPartitionsDown( $failed ); $key = $this->getCacheKey( 'empty' ); - $this->cache->set( $key, 'true', JobQueueDB::CACHE_TTL_LONG ); + $this->cache->set( $key, 'true', self::CACHE_TTL_LONG ); return false; }