X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDoubleRedirects.php;h=7b0006499744915e6dc9be427f301e27bdfaa4e7;hb=e429497501abd8e155511a38eb734160cf046019;hp=c04582e5c4f8b0bca226a0844e6a4f01af1ef099;hpb=25d33bacb3496e9acb6ec0d7147b48a6a552c81d;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/specials/SpecialDoubleRedirects.php b/includes/specials/SpecialDoubleRedirects.php
index c04582e5c4..7b00064997 100644
--- a/includes/specials/SpecialDoubleRedirects.php
+++ b/includes/specials/SpecialDoubleRedirects.php
@@ -51,14 +51,14 @@ class DoubleRedirectsPage extends QueryPage {
function reallyGetQueryInfo( $namespace = null, $title = null ) {
$limitToTitle = !( $namespace === null && $title === null );
$dbr = wfGetDB( DB_SLAVE );
- $retval = array(
- 'tables' => array(
+ $retval = [
+ 'tables' => [
'ra' => 'redirect',
'rb' => 'redirect',
'pa' => 'page',
'pb' => 'page'
- ),
- 'fields' => array(
+ ],
+ 'fields' => [
'namespace' => 'pa.page_namespace',
'title' => 'pa.page_title',
'value' => 'pa.page_title',
@@ -71,8 +71,8 @@ class DoubleRedirectsPage extends QueryPage {
'nsc' => 'rb.rd_namespace',
'tc' => 'rb.rd_title',
'iwc' => 'rb.rd_interwiki',
- ),
- 'conds' => array(
+ ],
+ 'conds' => [
'ra.rd_from = pa.page_id',
// Filter out redirects where the target goes interwiki (bug 40353).
@@ -88,8 +88,8 @@ class DoubleRedirectsPage extends QueryPage {
'pb.page_title = ra.rd_title',
'rb.rd_from = pb.page_id',
- )
- );
+ ]
+ ];
if ( $limitToTitle ) {
$retval['conds']['pa.page_namespace'] = $namespace;
@@ -104,7 +104,7 @@ class DoubleRedirectsPage extends QueryPage {
}
function getOrderFields() {
- return array( 'ra.rd_namespace', 'ra.rd_title' );
+ return [ 'ra.rd_namespace', 'ra.rd_title' ];
}
/**
@@ -138,7 +138,7 @@ class DoubleRedirectsPage extends QueryPage {
}
}
if ( !$result ) {
- return '' . Linker::link( $titleA, null, array(), array( 'redirect' => 'no' ) ) . '';
+ return '' . Linker::link( $titleA, null, [], [ 'redirect' => 'no' ] ) . '';
}
$titleB = Title::makeTitle( $result->nsb, $result->tb );
@@ -147,8 +147,8 @@ class DoubleRedirectsPage extends QueryPage {
$linkA = Linker::linkKnown(
$titleA,
null,
- array(),
- array( 'redirect' => 'no' )
+ [],
+ [ 'redirect' => 'no' ]
);
// if the page is editable, add an edit link
@@ -161,10 +161,10 @@ class DoubleRedirectsPage extends QueryPage {
$edit = Linker::linkKnown(
$titleA,
$this->msg( 'parentheses', $this->msg( 'editlink' )->text() )->escaped(),
- array(),
- array(
+ [],
+ [
'action' => 'edit'
- )
+ ]
);
} else {
$edit = '';
@@ -173,8 +173,8 @@ class DoubleRedirectsPage extends QueryPage {
$linkB = Linker::linkKnown(
$titleB,
null,
- array(),
- array( 'redirect' => 'no' )
+ [],
+ [ 'redirect' => 'no' ]
);
$linkC = Linker::linkKnown( $titleC );