jenkins-bot has submitted this change and it was merged.
Change subject: Fix notification pager
......................................................................
Fix notification pager
Needs to use Echo-specific DB
Bug: T136759
Change-Id: Ibdd71a76e751b0b8d115e86cb7eefab79cc56510
---
M includes/special/NotificationPager.php
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/special/NotificationPager.php
b/includes/special/NotificationPager.php
index 94b49e4..d9d18fb 100644
--- a/includes/special/NotificationPager.php
+++ b/includes/special/NotificationPager.php
@@ -8,6 +8,12 @@
* Class NotificationPager
*/
class NotificationPager extends ReverseChronologicalPager {
+ public function __construct() {
+ $dbFactory = MWEchoDbFactory::newFromDefault();
+ $this->mDb = $dbFactory->getEchoDb( DB_SLAVE );
+
+ parent::__construct();
+ }
function formatRow( $row ) {
$msg = "This pager does not support row formatting. Use
'getNotifications()' to get a list of EchoNotification objects.";
--
To view, visit https://gerrit.wikimedia.org/r/292281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibdd71a76e751b0b8d115e86cb7eefab79cc56510
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits