dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Protected function UploadBase->validateName changed to public"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialBrokenRedirects.php
diff --git
a/includes/specials/SpecialBrokenRedirects.php
b/includes/specials/SpecialBrokenRedirects.php
index
97de72a
..
e6fd58d
100644
(file)
--- a/
includes/specials/SpecialBrokenRedirects.php
+++ b/
includes/specials/SpecialBrokenRedirects.php
@@
-50,6
+50,7
@@
class BrokenRedirectsPage extends QueryPage {
}
function getQueryInfo() {
}
function getQueryInfo() {
+ $dbr = wfGetDB( DB_SLAVE );
return array(
'tables' => array(
'redirect',
return array(
'tables' => array(
'redirect',
@@
-68,7
+69,7
@@
class BrokenRedirectsPage extends QueryPage {
// but aren't "broken" either.
// Special pages and interwiki links
'rd_namespace >= 0',
// 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(
'p2.page_namespace IS NULL',
),
'join_conds' => array(
@@
-87,7
+88,7
@@
class BrokenRedirectsPage extends QueryPage {
* @return array
*/
function getOrderFields() {
* @return array
*/
function getOrderFields() {
- return array
( 'rd_namespace', 'rd_title', 'rd_from' );
+ return array( 'rd_namespace', 'rd_title', 'rd_from' );
}
/**
}
/**
@@
-137,7
+138,7
@@
class BrokenRedirectsPage extends QueryPage {
$out = $from . $this->msg( 'word-separator' )->escaped();
$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(),
$links[] = Linker::linkKnown(
$fromObj,
$this->msg( 'brokenredirects-delete' )->escaped(),
@@
-150,4
+151,8
@@
class BrokenRedirectsPage extends QueryPage {
$out .= " {$arr} {$to}";
return $out;
}
$out .= " {$arr} {$to}";
return $out;
}
+
+ protected function getGroupName() {
+ return 'maintenance';
+ }
}
}