summaryrefslogtreecommitdiff
path: root/includes/SpecialBrokenRedirects.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialBrokenRedirects.php')
-rw-r--r--includes/SpecialBrokenRedirects.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/SpecialBrokenRedirects.php b/includes/SpecialBrokenRedirects.php
index 208a7e1f..1fb48350 100644
--- a/includes/SpecialBrokenRedirects.php
+++ b/includes/SpecialBrokenRedirects.php
@@ -20,8 +20,7 @@ class BrokenRedirectsPage extends PageQueryPage {
function isSyndicated() { return false; }
function getPageHeader( ) {
- global $wgOut;
- return $wgOut->parse( wfMsg( 'brokenredirectstext' ) );
+ return wfMsgExt( 'brokenredirectstext', array( 'parse' ) );
}
function getSQL() {
@@ -36,7 +35,8 @@ class BrokenRedirectsPage extends PageQueryPage {
FROM $redirect AS rd
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 p2.page_namespace IS NULL";
+ WHERE rd_namespace >= 0
+ AND p2.page_namespace IS NULL";
return $sql;
}
@@ -92,4 +92,4 @@ function wfSpecialBrokenRedirects() {
return $sbr->doQuery( $offset, $limit );
}
-?>
+