From 84ce626df616029f1c0b4c24c4b5ee42ff5ca38f Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 13 Jul 2012 11:47:01 -0700 Subject: [PATCH] Moved getDatabase() from contribs pager to Pager class. Change-Id: I9443ecd18cdaca614aa446b5457c837a039dafe3 --- includes/Pager.php | 9 +++++++++ includes/specials/SpecialContributions.php | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/Pager.php b/includes/Pager.php index f80e05d0ad..d82f957e81 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -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 diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index e54c67a132..fb94ff72b2 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -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 -- 2.20.1