Use JobQueueGroup::singleton()
[lhc/web/wiklou.git] / includes / job / jobs / NullJob.php
index 99a8429..4996984 100644 (file)
@@ -52,7 +52,7 @@ class NullJob extends Job {
                        $params = $this->params;
                        $params['lives']--;
                        $job = new self( $this->title, $params );
-                       $job->insert();
+                       JobQueueGroup::singleton()->push( $job );
                }
                return true;
        }