Merge "Exclude redirects from Special:Fewestrevisions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 21 Jul 2019 18:11:12 +0000 (18:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 21 Jul 2019 18:11:12 +0000 (18:11 +0000)
includes/specials/SpecialFewestrevisions.php

index c47d87b..cf9da49 100644 (file)
@@ -49,14 +49,15 @@ class FewestrevisionsPage extends QueryPage {
                                'namespace' => 'page_namespace',
                                'title' => 'page_title',
                                'value' => 'COUNT(*)',
-                               'redirect' => 'page_is_redirect'
                        ],
                        'conds' => [
                                'page_namespace' => MediaWikiServices::getInstance()->getNamespaceInfo()->
                                        getContentNamespaces(),
-                               'page_id = rev_page' ],
+                               'page_id = rev_page',
+                               'page_is_redirect = 0',
+                       ],
                        'options' => [
-                               'GROUP BY' => [ 'page_namespace', 'page_title', 'page_is_redirect' ]
+                               'GROUP BY' => [ 'page_namespace', 'page_title' ]
                        ]
                ];
        }