dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename WikiMap DB domain ID methods to reduce confusion with web domains
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
JobQueue.php
diff --git
a/includes/jobqueue/JobQueue.php
b/includes/jobqueue/JobQueue.php
index
3689ba4
..
0ca272c
100644
(file)
--- a/
includes/jobqueue/JobQueue.php
+++ b/
includes/jobqueue/JobQueue.php
@@
-323,7
+323,7
@@
abstract class JobQueue {
final public function batchPush( array $jobs, $flags = 0 ) {
$this->assertNotReadOnly();
final public function batchPush( array $jobs, $flags = 0 ) {
$this->assertNotReadOnly();
- if (
!count( $jobs )
) {
+ if (
$jobs === []
) {
return; // nothing to do
}
return; // nothing to do
}
@@
-366,7
+366,7
@@
abstract class JobQueue {
global $wgJobClasses;
$this->assertNotReadOnly();
global $wgJobClasses;
$this->assertNotReadOnly();
- if ( !WikiMap::isCurrentWikiDomain( $this->domain ) ) {
+ if ( !WikiMap::isCurrentWikiD
bD
omain( $this->domain ) ) {
throw new MWException(
"Cannot pop '{$this->type}' job off foreign '{$this->domain}' wiki queue." );
} elseif ( !isset( $wgJobClasses[$this->type] ) ) {
throw new MWException(
"Cannot pop '{$this->type}' job off foreign '{$this->domain}' wiki queue." );
} elseif ( !isset( $wgJobClasses[$this->type] ) ) {