X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=358a3098249f4fb16e1d90f915b4e283c176270f;hb=4e7021a2318ec588e4d0b226c64d25e93ec80bd8;hp=a13af55de599fe6d85d3e36b64890c1e42d9f9fa;hpb=9ac5caffb48b32d2ba4b9be03a5682d657186c7f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index a13af55de5..358a309824 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -62,8 +62,9 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $outputPage = $this->getOutput(); $title = Title::newFromText( $target ); if ( !$title || $title->isExternal() ) { - $outputPage->addHTML( '
' . $this->msg( 'allpagesbadtitle' ) - ->parse() . '
' ); + $outputPage->addHTML( + Html::errorBox( $this->msg( 'allpagesbadtitle' )->parse() ) + ); return false; } @@ -84,8 +85,10 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $ns = $title->getNamespace(); $dbkey = $title->getDBkey(); - $tables[] = 'recentchanges'; - $select = array_merge( RecentChange::selectFields(), $select ); + $rcQuery = RecentChange::getQueryInfo(); + $tables = array_merge( $tables, $rcQuery['tables'] ); + $select = array_merge( $rcQuery['fields'], $select ); + $join_conds = array_merge( $join_conds, $rcQuery['joins'] ); // left join with watchlist table to highlight watched rows $uid = $this->getUser()->getId();