From: Aaron Date: Fri, 13 Jul 2012 18:47:01 +0000 (-0700) Subject: Moved getDatabase() from contribs pager to Pager class. X-Git-Tag: 1.31.0-rc.0~23041^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=84ce626df616029f1c0b4c24c4b5ee42ff5ca38f;p=lhc%2Fweb%2Fwiklou.git Moved getDatabase() from contribs pager to Pager class. Change-Id: I9443ecd18cdaca614aa446b5457c837a039dafe3 --- 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