Moved getDatabase() from contribs pager to Pager class.
authorAaron <aschulz@wikimedia.org>
Fri, 13 Jul 2012 18:47:01 +0000 (11:47 -0700)
committerAaron <aschulz@wikimedia.org>
Fri, 13 Jul 2012 18:47:01 +0000 (11:47 -0700)
Change-Id: I9443ecd18cdaca614aa446b5457c837a039dafe3

includes/Pager.php
includes/specials/SpecialContributions.php

index f80e05d..d82f957 100644 (file)
@@ -175,6 +175,15 @@ abstract class IndexPager extends ContextSource implements Pager {
                }
        }
 
+       /**
+        * Get the Database object in use
+        *
+        * @return DatabaseBase
+        */
+       public function getDatabase() {
+               return $this->mDb;
+       }
+
        /**
         * Do the query, using information from the object context. This function
         * has been kept minimal to make it overridable if necessary, to allow for
index e54c67a..fb94ff7 100644 (file)
@@ -957,15 +957,6 @@ class ContribsPager extends ReverseChronologicalPager {
                return $ret;
        }
 
-       /**
-        * Get the Database object in use
-        *
-        * @return DatabaseBase
-        */
-       public function getDatabase() {
-               return $this->mDb;
-       }
-
        /**
         * Overwrite Pager function and return a helpful comment
         * @return string