summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/utils/MessageIndexRebuildJob.php')
-rw-r--r--MLEB/Translate/utils/MessageIndexRebuildJob.php15
1 files changed, 3 insertions, 12 deletions
diff --git a/MLEB/Translate/utils/MessageIndexRebuildJob.php b/MLEB/Translate/utils/MessageIndexRebuildJob.php
index a155ff9e..0d97a8d6 100644
--- a/MLEB/Translate/utils/MessageIndexRebuildJob.php
+++ b/MLEB/Translate/utils/MessageIndexRebuildJob.php
@@ -75,17 +75,8 @@ class MessageIndexRebuildJob extends GenericTranslateJob {
return $info;
}
- /**
- * Usually this job is fast enough to be executed immediately,
- * in which case having it go through jobqueue only causes problems
- * in installations with errant job queue processing.
- */
- public function insertIntoJobQueue() {
- global $wgTranslateDelayedMessageIndexRebuild;
- if ( $wgTranslateDelayedMessageIndexRebuild ) {
- JobQueueGroup::singleton()->push( $this );
- } else {
- $this->run();
- }
+ /** @deprecated Just push directly to the job queue */
+ public function insertIntoJobQueue(): void {
+ JobQueueGroup::singleton()->push( $this );
}
}