Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / specials / SpecialShortpages.php
index 74a1322..20f2fc8 100644 (file)
@@ -38,32 +38,32 @@ class ShortPagesPage extends QueryPage {
        }
 
        public function getQueryInfo() {
-               $tables = array( 'page' );
-               $conds = array(
+               $tables = [ 'page' ];
+               $conds = [
                        'page_namespace' => MWNamespace::getContentNamespaces(),
                        'page_is_redirect' => 0
-               );
-               $joinConds = array();
-               $options = array( 'USE INDEX' => array( 'page' => 'page_redirect_namespace_len' ) );
+               ];
+               $joinConds = [];
+               $options = [ 'USE INDEX' => [ 'page' => 'page_redirect_namespace_len' ] ];
 
                // Allow extensions to modify the query
-               Hooks::run( 'ShortPagesQuery', array( &$tables, &$conds, &$joinConds, &$options ) );
+               Hooks::run( 'ShortPagesQuery', [ &$tables, &$conds, &$joinConds, &$options ] );
 
-               return array(
+               return [
                        'tables' => $tables,
-                       'fields' => array(
+                       'fields' => [
                                'namespace' => 'page_namespace',
                                'title' => 'page_title',
                                'value' => 'page_len'
-                       ),
+                       ],
                        'conds' => $conds,
                        'join_conds' => $joinConds,
                        'options' => $options
-               );
+               ];
        }
 
        function getOrderFields() {
-               return array( 'page_len' );
+               return [ 'page_len' ];
        }
 
        /**
@@ -100,15 +100,15 @@ class ShortPagesPage extends QueryPage {
 
                $title = Title::makeTitleSafe( $result->namespace, $result->title );
                if ( !$title ) {
-                       return Html::element( 'span', array( 'class' => 'mw-invalidtitle' ),
+                       return Html::element( 'span', [ 'class' => 'mw-invalidtitle' ],
                                Linker::getInvalidTitleDescription( $this->getContext(), $result->namespace, $result->title ) );
                }
 
                $hlink = Linker::linkKnown(
                        $title,
                        $this->msg( 'hist' )->escaped(),
-                       array(),
-                       array( 'action' => 'history' )
+                       [],
+                       [ 'action' => 'history' ]
                );
                $hlinkInParentheses = $this->msg( 'parentheses' )->rawParams( $hlink )->escaped();