X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=88656546e3bdf012bf53eba5e1441140876388f6;hb=ee09d4f0ee2e592e721f00805735afcb9e3e7e22;hp=181b4db4c9a63d85e8e941ef78a063840c04d71c;hpb=4b2f95bed5a9ae0a917264abed2ba1fd9fb78f3c;p=lhc%2Fweb%2Fwiklou.git 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( - '
' . - $this->msg( 'recentchanges-notargetpage' )->parse() . - '
' + Html::rawElement( + 'div', + [ 'class' => 'mw-changeslist-empty mw-changeslist-notargetpage' ], + $this->msg( 'recentchanges-notargetpage' )->parse() + ) ); } elseif ( !$targetTitle || $targetTitle->isExternal() ) { $this->getOutput()->addHTML( - '
' . - $this->msg( 'allpagesbadtitle' )->parse() . - '
' + Html::rawElement( + 'div', + [ 'class' => 'mw-changeslist-empty mw-changeslist-invalidtargetpage' ], + $this->msg( 'allpagesbadtitle' )->parse() + ) ); } else { parent::outputNoResults();