Merge "Use local context to get messages and time formatting methods of Language...
[lhc/web/wiklou.git] / includes / Pager.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