SpecialFewestrevisions: Allow pages with only 1 revision to be shown
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 25 Nov 2016 16:21:08 +0000 (17:21 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 25 Nov 2016 16:21:08 +0000 (17:21 +0100)
Change-Id: I44630c62ac521f0a701d1aec6a41a81d1a1532f0

includes/specials/SpecialFewestrevisions.php

index b86a95e..64a6ba9 100644 (file)
@@ -53,12 +53,6 @@ class FewestrevisionsPage extends QueryPage {
                                'page_namespace' => MWNamespace::getContentNamespaces(),
                                'page_id = rev_page' ],
                        'options' => [
-                               'HAVING' => 'COUNT(*) > 1',
-                               // ^^^ This was probably here to weed out redirects.
-                               // Since we mark them as such now, it might be
-                               // useful to remove this. People _do_ create pages
-                               // and never revise them, they aren't necessarily
-                               // redirects.
                                'GROUP BY' => [ 'page_namespace', 'page_title', 'page_is_redirect' ]
                        ]
                ];