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
Merge "Use Status::isOK() method in FileDeleteForm"
[lhc/web/wiklou.git]
/
includes
/
jobqueue
/
JobQueueGroup.php
diff --git
a/includes/jobqueue/JobQueueGroup.php
b/includes/jobqueue/JobQueueGroup.php
index
de5f410
..
71d68d9
100644
(file)
--- a/
includes/jobqueue/JobQueueGroup.php
+++ b/
includes/jobqueue/JobQueueGroup.php
@@
-120,6
+120,8
@@
class JobQueueGroup {
* @return void
*/
public function push( $jobs ) {
* @return void
*/
public function push( $jobs ) {
+ global $wgJobTypesExcludedFromDefaultQueue;
+
$jobs = is_array( $jobs ) ? $jobs : [ $jobs ];
if ( !count( $jobs ) ) {
return;
$jobs = is_array( $jobs ) ? $jobs : [ $jobs ];
if ( !count( $jobs ) ) {
return;
@@
-149,7
+151,7
@@
class JobQueueGroup {
'true',
15
);
'true',
15
);
- if ( array_
intersect( array_keys( $jobsByType ), $this->getDefaultQueueTypes()
) ) {
+ if ( array_
diff( array_keys( $jobsByType ), $wgJobTypesExcludedFromDefaultQueue
) ) {
$cache->set(
$cache->makeGlobalKey( 'jobqueue', $this->wiki, 'hasjobs', self::TYPE_DEFAULT ),
'true',
$cache->set(
$cache->makeGlobalKey( 'jobqueue', $this->wiki, 'hasjobs', self::TYPE_DEFAULT ),
'true',