Merge "Revert "Adding sanity check to Title::isRedirect().""
[lhc/web/wiklou.git] / 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 );
                        }