X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWhatlinkshere.php;h=3080fbfedbe70b65b3f7dbaf5b192f707247bb8b;hb=9604c55869b0879f944215eda992570820b55ec8;hp=439b6ab3cba92201366b8d4dbd27fd8f02549c01;hpb=24dc5218b18bfa065a101057523f39a9c046d046;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 439b6ab3cb..3080fbfedb 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -21,6 +21,8 @@ * @todo Use some variant of Pager or something; the pagination here is lousy. */ +use Wikimedia\Rdbms\IDatabase; + /** * Implements Special:Whatlinkshere * @@ -160,7 +162,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { ]; $on['rd_namespace'] = $target->getNamespace(); // Inner LIMIT is 2X in case of stale backlinks with wrong namespaces - $subQuery = $dbr->selectSQLText( + $subQuery = $dbr->buildSelectSubquery( [ $table, 'redirect', 'page' ], [ $fromCol, 'rd_from' ], $conds[$table], @@ -173,7 +175,7 @@ class SpecialWhatLinksHere extends IncludableSpecialPage { ] ); return $dbr->select( - [ 'page', 'temp_backlink_range' => "($subQuery)" ], + [ 'page', 'temp_backlink_range' => $subQuery ], [ 'page_id', 'page_namespace', 'page_title', 'rd_from', 'page_is_redirect' ], [], __CLASS__ . '::showIndirectLinks',