mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
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:
parent
b03f290d49
commit
48d737471e
|
@ -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 [];
|
||||
|
|
Loading…
Reference in a new issue