Merge "Exclude redirects from Special:Fewestrevisions"
[lhc/web/wiklou.git] / includes / specials / SpecialUncategorizedimages.php
index 9060f53..ed2d5cf 100644 (file)
@@ -31,6 +31,7 @@
 class UncategorizedImagesPage extends ImageQueryPage {
        function __construct( $name = 'Uncategorizedimages' ) {
                parent::__construct( $name );
+               $this->addHelpLink( 'Help:Categories' );
        }
 
        function sortDescending() {
@@ -46,17 +47,17 @@ class UncategorizedImagesPage extends ImageQueryPage {
        }
 
        function getQueryInfo() {
-               return array(
-                       'tables' => array( 'page', 'categorylinks' ),
-                       'fields' => array( 'namespace' => 'page_namespace',
+               return [
+                       'tables' => [ 'page', 'categorylinks' ],
+                       'fields' => [ 'namespace' => 'page_namespace',
                                'title' => 'page_title',
-                               'value' => 'page_title' ),
-                       'conds' => array( 'cl_from IS NULL',
+                               'value' => 'page_title' ],
+                       'conds' => [ 'cl_from IS NULL',
                                'page_namespace' => NS_FILE,
-                               'page_is_redirect' => 0 ),
-                       'join_conds' => array( 'categorylinks' => array(
-                               'LEFT JOIN', 'cl_from=page_id' ) )
-               );
+                               'page_is_redirect' => 0 ],
+                       'join_conds' => [ 'categorylinks' => [
+                               'LEFT JOIN', 'cl_from=page_id' ] ]
+               ];
        }
 
        protected function getGroupName() {