From f85ccdffbaab63c8cf5a014d7f16f02ce7501551 Mon Sep 17 00:00:00 2001 From: AntiCompositeNumber Date: Fri, 27 Aug 2021 19:41:28 -0400 Subject: [PATCH] Fix hardcoded non-prefixed table in editsInNs query Hardcoding the table here causes a database error if $wgDBprefix is set. This fix should be backported to 1.35 Bug: T289902 Change-Id: Id22b696d00069e26edfa7bc4e109e1e6b74fbecf --- Editcount_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editcount_body.php b/Editcount_body.php index f89ce23..5025e61 100644 --- a/Editcount_body.php +++ b/Editcount_body.php @@ -105,7 +105,7 @@ class Editcount extends IncludableSpecialPage { [ 'page_namespace' => $ns, $actorWhere['conds'] ], __METHOD__, [], - [ 'page' => [ 'JOIN', 'page.page_id = rev_page' ] ] + $actorWhere['joins'] + [ 'page' => [ 'JOIN', 'page_id = rev_page' ] ] + $actorWhere['joins'] ); } }