X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedtemplates.php;h=b0a2579fe005396af94ed7f2a48599b29e0d737a;hp=33444f637a5b81a06f9f2e505d07786b3d9980e5;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=607a84af5f027c1a942cb5b2cd46a4958c5af7b0 diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php index 33444f637a..b0a2579fe0 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedtemplates.php @@ -47,22 +47,22 @@ class UnusedtemplatesPage extends QueryPage { } public function getQueryInfo() { - return array( - 'tables' => array( 'page', 'templatelinks' ), - 'fields' => array( + return [ + 'tables' => [ 'page', 'templatelinks' ], + 'fields' => [ 'namespace' => 'page_namespace', 'title' => 'page_title', 'value' => 'page_title' - ), - 'conds' => array( + ], + 'conds' => [ 'page_namespace' => NS_TEMPLATE, 'tl_from IS NULL', 'page_is_redirect' => 0 - ), - 'join_conds' => array( 'templatelinks' => array( - 'LEFT JOIN', array( 'tl_title = page_title', - 'tl_namespace = page_namespace' ) ) ) - ); + ], + 'join_conds' => [ 'templatelinks' => [ + 'LEFT JOIN', [ 'tl_title = page_title', + 'tl_namespace = page_namespace' ] ] ] + ]; } /** @@ -75,8 +75,8 @@ class UnusedtemplatesPage extends QueryPage { $pageLink = Linker::linkKnown( $title, null, - array(), - array( 'redirect' => 'no' ) + [], + [ 'redirect' => 'no' ] ); $wlhLink = Linker::linkKnown( SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ),