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 "Add missing return value"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialBrokenRedirects.php
diff --git
a/includes/specials/SpecialBrokenRedirects.php
b/includes/specials/SpecialBrokenRedirects.php
index
77b69e8
..
b2ddc22
100644
(file)
--- a/
includes/specials/SpecialBrokenRedirects.php
+++ b/
includes/specials/SpecialBrokenRedirects.php
@@
-51,6
+51,7
@@
class BrokenRedirectsPage extends QueryPage {
function getQueryInfo() {
$dbr = wfGetDB( DB_SLAVE );
function getQueryInfo() {
$dbr = wfGetDB( DB_SLAVE );
+
return array(
'tables' => array(
'redirect',
return array(
'tables' => array(
'redirect',
@@
-88,13
+89,13
@@
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' );
}
/**
}
/**
- * @param
$skin S
kin
- * @param
$result
- * @return
S
tring
+ * @param
Skin $s
kin
+ * @param
object $result Result row
+ * @return
s
tring
*/
function formatResult( $skin, $result ) {
$fromObj = Title::makeTitle( $result->namespace, $result->title );
*/
function formatResult( $skin, $result ) {
$fromObj = Title::makeTitle( $result->namespace, $result->title );
@@
-138,7
+139,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(),
@@
-149,6
+150,11
@@
class BrokenRedirectsPage extends QueryPage {
$out .= $this->msg( 'parentheses' )->rawParams( $this->getLanguage()->pipeList( $links ) )->escaped();
$out .= " {$arr} {$to}";
$out .= $this->msg( 'parentheses' )->rawParams( $this->getLanguage()->pipeList( $links ) )->escaped();
$out .= " {$arr} {$to}";
+
return $out;
}
return $out;
}
+
+ protected function getGroupName() {
+ return 'maintenance';
+ }
}
}