X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FLinker.php;h=5fc5eb1c29a841dd62ca59a8da47faaf66c30f36;hp=fb446b494a4b031b333479c8b4d916b793f93456;hb=90232b6f36ee5a1473f2e865cc7a72d0014db4c7;hpb=5612400c8271ac2762fd2ce9acfcc9a58e47f0ee diff --git a/includes/Linker.php b/includes/Linker.php index fb446b494a..5fc5eb1c29 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1752,9 +1752,10 @@ class Linker { $dbr = wfGetDB( DB_REPLICA ); // Up to the value of $wgShowRollbackEditCount revisions are counted + $revQuery = Revision::getQueryInfo(); $res = $dbr->select( - 'revision', - [ 'rev_user_text', 'rev_deleted' ], + $revQuery['tables'], + [ 'rev_user_text' => $revQuery['fields']['rev_user_text'], 'rev_deleted' ], // $rev->getPage() returns null sometimes [ 'rev_page' => $rev->getTitle()->getArticleID() ], __METHOD__, @@ -1762,7 +1763,8 @@ class Linker { 'USE INDEX' => [ 'revision' => 'page_timestamp' ], 'ORDER BY' => 'rev_timestamp DESC', 'LIMIT' => $wgShowRollbackEditCount + 1 - ] + ], + $revQuery['joins'] ); $editCount = 0;