summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Robson <jdlrobson@gmail.com>2022-01-10 16:17:01 -0800
committerJdlrobson <jrobson@wikimedia.org>2022-01-11 00:22:32 +0000
commitcec8fbfc669183e86bc38d2e75df4d24414de40f (patch)
tree274f773d72d2acdbe5369a95461d5e7a73f17a84
parent0f062d18039576181cec8e4b7d1f0dc043a39f9e (diff)
Styles should be added to all IndexPagers
TablePager extends IndexPager to add styles to the page However, these styles need to be added to the history page too which uses the HistoryPager where extends IndexPager. Follow up to I0cba011f0ab8cb8fd59962b5eafb7650deefe841 Bug: T298636 Change-Id: I9648308b1c1eb1a544f138c1fcf5e7cd155d172f
-rw-r--r--includes/pager/IndexPager.php1
-rw-r--r--includes/pager/TablePager.php1
2 files changed, 1 insertions, 1 deletions
diff --git a/includes/pager/IndexPager.php b/includes/pager/IndexPager.php
index 9a233ed03057..c37d586821ae 100644
--- a/includes/pager/IndexPager.php
+++ b/includes/pager/IndexPager.php
@@ -595,6 +595,7 @@ abstract class IndexPager extends ContextSource implements Pager {
* @return string
*/
public function getBody() {
+ $this->getOutput()->addModuleStyles( $this->getModuleStyles() );
if ( !$this->mQueryDone ) {
$this->doQuery();
}
diff --git a/includes/pager/TablePager.php b/includes/pager/TablePager.php
index 934c9ad00cbc..39a7aa2de51c 100644
--- a/includes/pager/TablePager.php
+++ b/includes/pager/TablePager.php
@@ -77,7 +77,6 @@ abstract class TablePager extends IndexPager {
* @return string
*/
final public function getBody() {
- $this->getOutput()->addModuleStyles( $this->getModuleStyles() );
return parent::getBody();
}