John Erling Blad has submitted this change and it was merged.

Change subject: Make WikiPageEntityLookup work on installs with a table prefix
......................................................................


Make WikiPageEntityLookup work on installs with a table prefix

bug 43229

Change-Id: Ia465208d2c4239e4ce72f23addb51d248da62cb2
---
M lib/includes/store/WikiPageEntityLookup.php
1 file changed, 5 insertions(+), 1 deletion(-)

Approvals:
  John Erling Blad: Verified; Looks good to me, approved



diff --git a/lib/includes/store/WikiPageEntityLookup.php 
b/lib/includes/store/WikiPageEntityLookup.php
index fbdddf2..d344806 100644
--- a/lib/includes/store/WikiPageEntityLookup.php
+++ b/lib/includes/store/WikiPageEntityLookup.php
@@ -151,7 +151,11 @@
                        'text'
                );
 
-               $vars = 'page.*, revision.*, text.*';
+               $pageTable = $db->tableName( 'page' );
+               $revisionTable = $db->tableName( 'revision' );
+               $textTable = $db->tableName( 'text' );
+
+               $vars = "$pageTable.*, $revisionTable.*, $textTable.*";
 
                $where = array();
                $join = array();

-- 
To view, visit https://gerrit.wikimedia.org/r/53351
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia465208d2c4239e4ce72f23addb51d248da62cb2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: Aude <aude.w...@gmail.com>
Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de>
Gerrit-Reviewer: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: John Erling Blad <john.b...@wikimedia.de>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to