$title = Title::makeTitleSafe( $namespace, $dbkey );
if ( is_null( $title ) ) {
+ wfProfileOut( __METHOD__ );
return false;
}
global $wgJobTypesExcludedFromDefaultQueue;
$conditions = array();
if ( count( $wgJobTypesExcludedFromDefaultQueue ) > 0 ) {
+ $dbr = wfGetDB( DB_SLAVE );
foreach ( $wgJobTypesExcludedFromDefaultQueue as $cmdType ) {
$conditions[] = "job_cmd != " . $dbr->addQuotes( $cmdType );
}