X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDeadendpages.php;h=f13f231dc4583431eda3795023eda911587c57b2;hb=0770f85a0a293e6c7af6f1d3d3a1dbd2d13c1e09;hp=44137c1ea09b8e5ef76e65693a4d03f4eeb94517;hpb=7636bea2bf3ccc33389a97d968bdda64036f59c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDeadendpages.php b/includes/specials/SpecialDeadendpages.php index 44137c1ea0..f13f231dc4 100644 --- a/includes/specials/SpecialDeadendpages.php +++ b/includes/specials/SpecialDeadendpages.php @@ -57,34 +57,34 @@ class DeadendPagesPage extends PageQueryPage { } function getQueryInfo() { - return array( - 'tables' => array( 'page', 'pagelinks' ), - 'fields' => array( + return [ + 'tables' => [ 'page', 'pagelinks' ], + 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', 'value' => 'page_title' - ), - 'conds' => array( + ], + 'conds' => [ 'pl_from IS NULL', 'page_namespace' => MWNamespace::getContentNamespaces(), 'page_is_redirect' => 0 - ), - 'join_conds' => array( - 'pagelinks' => array( + ], + 'join_conds' => [ + 'pagelinks' => [ 'LEFT JOIN', - array( 'page_id=pl_from' ) - ) - ) - ); + [ 'page_id=pl_from' ] + ] + ] + ]; } function getOrderFields() { // For some crazy reason ordering by a constant // causes a filesort if ( count( MWNamespace::getContentNamespaces() ) > 1 ) { - return array( 'page_namespace', 'page_title' ); + return [ 'page_namespace', 'page_title' ]; } else { - return array( 'page_title' ); + return [ 'page_title' ]; } }