Update for the actor table change

Core change I8d825eb0 begins the process of changing core database
tables from using xx_user and xx_user_text fields to using xx_actor.
This updates the extension to continue to function during and after the
transition.

Bug: T167246
Change-Id: I5c0c4879c5ab252be9c0582aa9efa871304a8ad8
This commit is contained in:
Brad Jorsch 2018-03-12 11:47:02 -04:00
parent b03f290d49
commit 48d737471e

View file

@ -95,12 +95,14 @@ class EchoUserLocator {
}
$dbr = wfGetDB( DB_REPLICA );
$revQuery = Revision::getQueryInfo();
$res = $dbr->selectRow(
[ 'revision' ],
[ 'rev_user' ],
$revQuery['tables'],
[ 'rev_user' => $revQuery['fields']['rev_user'] ],
[ 'rev_page' => $title->getArticleID() ],
__METHOD__,
[ 'LIMIT' => 1, 'ORDER BY' => 'rev_timestamp, rev_id' ]
[ 'LIMIT' => 1, 'ORDER BY' => 'rev_timestamp, rev_id' ],
$revQuery['joins']
);
if ( !$res || !$res->rev_user ) {
return [];