Removed subclassing of PageQueryPage where not needed.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 13 Apr 2012 08:30:57 +0000 (10:30 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 13 Apr 2012 08:30:57 +0000 (10:30 +0200)
These three classes (BrokenRedirectsPage, DisambiguationsPage and DoubleRedirectsPage) override formatResult() which is the only method defined in PageQueryPage; they can thus directly subclass QueryPage.
It also confused me when trying to find a page extending PageQueryPage to test my changes in PageQueryPage::formatResult().

Change-Id: Ic0923935b67a09e868367db6a21ef92305b4f8ee

includes/specials/SpecialBrokenRedirects.php
includes/specials/SpecialDisambiguations.php
includes/specials/SpecialDoubleRedirects.php

index b8dbe9e..d624430 100644 (file)
@@ -27,7 +27,7 @@
  *
  * @ingroup SpecialPage
  */
-class BrokenRedirectsPage extends PageQueryPage {
+class BrokenRedirectsPage extends QueryPage {
 
        function __construct( $name = 'BrokenRedirects' ) {
                parent::__construct( $name );
index 8f780b5..a5ab3e6 100644 (file)
@@ -26,7 +26,7 @@
  *
  * @ingroup SpecialPage
  */
-class DisambiguationsPage extends PageQueryPage {
+class DisambiguationsPage extends QueryPage {
 
        function __construct( $name = 'Disambiguations' ) {
                parent::__construct( $name );
index a6df66f..51cb08a 100644 (file)
@@ -27,7 +27,7 @@
  *
  * @ingroup SpecialPage
  */
-class DoubleRedirectsPage extends PageQueryPage {
+class DoubleRedirectsPage extends QueryPage {
 
        function __construct( $name = 'DoubleRedirects' ) {
                parent::__construct( $name );