X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=88656546e3bdf012bf53eba5e1441140876388f6;hp=181b4db4c9a63d85e8e941ef78a063840c04d71c;hb=4cebf80a894f1bc9f9e2f732c8b78d5237810343;hpb=0c2687f44eb0e8c7f480b7303f89056682ba0bfb diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index 181b4db4c9..88656546e3 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -207,7 +207,7 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $conds + $subconds, __METHOD__, $order + $query_options, - $join_conds + [ $link_table => [ 'INNER JOIN', $subjoin ] ] + $join_conds + [ $link_table => [ 'JOIN', $subjoin ] ] ); if ( $dbr->unionSupportsOrderAndLimit() ) { @@ -224,7 +224,8 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $sql = $subsql[0]; } else { // need to resort and relimit after union - $sql = $dbr->unionQueries( $subsql, false ) . ' ORDER BY rc_timestamp DESC'; + $sql = $dbr->unionQueries( $subsql, $dbr::UNION_DISTINCT ) . + ' ORDER BY rc_timestamp DESC'; $sql = $dbr->limitResult( $sql, $limit, false ); } @@ -297,15 +298,19 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $targetTitle = $this->getTargetTitle(); if ( $targetTitle === false ) { $this->getOutput()->addHTML( - '