Add rate limiter to Special:ConfirmEmail
[lhc/web/wiklou.git] / includes / specials / SpecialWantedtemplates.php
index a4b9dd8..66e6814 100644 (file)
@@ -37,22 +37,22 @@ class WantedTemplatesPage extends WantedQueryPage {
        }
 
        function getQueryInfo() {
-               return array(
-                       'tables' => array( 'templatelinks', 'page' ),
-                       'fields' => array(
+               return [
+                       'tables' => [ 'templatelinks', 'page' ],
+                       'fields' => [
                                'namespace' => 'tl_namespace',
                                'title' => 'tl_title',
                                'value' => 'COUNT(*)'
-                       ),
-                       'conds' => array(
+                       ],
+                       'conds' => [
                                'page_title IS NULL',
                                'tl_namespace' => NS_TEMPLATE
-                       ),
-                       'options' => array( 'GROUP BY' => array( 'tl_namespace', 'tl_title' ) ),
-                       'join_conds' => array( 'page' => array( 'LEFT JOIN',
-                               array( 'page_namespace = tl_namespace',
-                                       'page_title = tl_title' ) ) )
-               );
+                       ],
+                       'options' => [ 'GROUP BY' => [ 'tl_namespace', 'tl_title' ] ],
+                       'join_conds' => [ 'page' => [ 'LEFT JOIN',
+                               [ 'page_namespace = tl_namespace',
+                                       'page_title = tl_title' ] ] ]
+               ];
        }
 
        protected function getGroupName() {