Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/292288
Change subject: Fix notification pager
......................................................................
Fix notification pager
Needs to use Echo-specific DB
Bug: T136759
Change-Id: Ibdd71a76e751b0b8d115e86cb7eefab79cc56510
(cherry picked from commit f88c90efce677c2524ce7c9683a98cad846c0cd5)
---
M includes/special/NotificationPager.php
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo
refs/changes/88/292288/1
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/292288
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibdd71a76e751b0b8d115e86cb7eefab79cc56510
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: wmf/1.28.0-wmf.4
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits