rd_namespace,
rd_title
FROM $redirect AS rd
- JOIN $page p1 ON (rd.rd_from=p1.page_id)
+ JOIN $page p1 ON (rd.rd_from=p1.page_id)
LEFT JOIN $page AS p2 ON (rd_namespace=p2.page_namespace AND rd_title=p2.page_title )
- WHERE rd_namespace >= 0
+ WHERE rd_namespace >= 0
AND p2.page_namespace IS NULL";
return $sql;
}
}
function formatResult( $skin, $result ) {
- global $wgUser, $wgContLang;
+ global $wgUser, $wgContLang, $wgLang;
$fromObj = Title::makeTitle( $result->namespace, $result->title );
if ( isset( $result->rd_title ) ) {
array(),
array( 'redirect' => 'no' )
);
- $edit = $skin->linkKnown(
+ $links = array();
+ $links[] = $skin->linkKnown(
$fromObj,
wfMsgHtml( 'brokenredirects-edit' ),
array(),
array( 'action' => 'edit' )
);
- $to = $skin->makeBrokenLinkObj( $toObj );
+ $to = $skin->link(
+ $toObj,
+ null,
+ array(),
+ array(),
+ array( 'broken' )
+ );
$arr = $wgContLang->getArrow();
- $out = "{$from} {$edit}";
+ $out = $from . wfMsg( 'word-separator' );
if( $wgUser->isAllowed( 'delete' ) ) {
- $delete = $skin->linkKnown(
+ $links[] = $skin->linkKnown(
$fromObj,
wfMsgHtml( 'brokenredirects-delete' ),
array(),
array( 'action' => 'delete' )
);
- $out .= " {$delete}";
}
+ $out .= wfMsg( 'parentheses', $wgLang->pipeList( $links ) );
$out .= " {$arr} {$to}";
return $out;
}
'brokenredirects' => 'Broken redirects',
'brokenredirects-summary' => '', # do not translate or duplicate this message to other languages
'brokenredirectstext' => 'The following redirects link to non-existent pages:',
-'brokenredirects-edit' => '(edit)',
-'brokenredirects-delete' => '(delete)',
+'brokenredirects-edit' => 'edit',
+'brokenredirects-delete' => 'delete',
'withoutinterwiki' => 'Pages without language links',
'withoutinterwiki-summary' => 'The following pages do not link to other language versions.',
'word-separator' => ' ', # only translate this message to other languages if you have to change it
'ellipsis' => '...', # only translate this message to other languages if you have to change it
'percent' => '$1%', # only translate this message to other languages if you have to change it
+'parentheses' => '($1)', # only translate this message to other languages if you have to change it
# Multipage image navigation
'imgmultipageprev' => '← previous page',