}
function getQueryInfo() {
+ $dbr = wfGetDB( DB_SLAVE );
return array(
'tables' => array(
'redirect',
// but aren't "broken" either.
// Special pages and interwiki links
'rd_namespace >= 0',
- '(rd_interwiki IS NULL OR rd_interwiki = "")',
+ 'rd_interwiki IS NULL OR rd_interwiki = ' . $dbr->addQuotes( '' ),
'p2.page_namespace IS NULL',
),
'join_conds' => array(
* @return array
*/
function getOrderFields() {
- return array ( 'rd_namespace', 'rd_title', 'rd_from' );
+ return array( 'rd_namespace', 'rd_title', 'rd_from' );
}
/**
$out = $from . $this->msg( 'word-separator' )->escaped();
- if( $this->getUser()->isAllowed( 'delete' ) ) {
+ if ( $this->getUser()->isAllowed( 'delete' ) ) {
$links[] = Linker::linkKnown(
$fromObj,
$this->msg( 'brokenredirects-delete' )->escaped(),
$out .= " {$arr} {$to}";
return $out;
}
+
+ protected function getGroupName() {
+ return 'maintenance';
+ }
}