Merge "Localisation updates from http://translatewiki.net."
authorReedy <reedy@wikimedia.org>
Thu, 31 May 2012 10:19:36 +0000 (10:19 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 31 May 2012 10:19:37 +0000 (10:19 +0000)
includes/job/JobQueue.php

index 7a4f0ad..7b7ec0c 100644 (file)
@@ -328,6 +328,7 @@ abstract class Job {
                global $wgJobTypesExcludedFromDefaultQueue;
                $conditions = array();
                if ( count( $wgJobTypesExcludedFromDefaultQueue ) > 0 ) {
+                       $dbr = wfGetDB( DB_SLAVE );
                        foreach ( $wgJobTypesExcludedFromDefaultQueue as $cmdType ) {
                                $conditions[] = "job_cmd != " . $dbr->addQuotes( $cmdType );
                        }