From: jenkins-bot Date: Thu, 21 Feb 2019 21:57:49 +0000 (+0000) Subject: Merge "RCFilters: Export config vars in the RL modules where possible (take 2)" X-Git-Tag: 1.34.0-rc.0~2754 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=c32087b1ef05195110344c0529526be9cc923c52;p=lhc%2Fweb%2Fwiklou.git Merge "RCFilters: Export config vars in the RL modules where possible (take 2)" --- c32087b1ef05195110344c0529526be9cc923c52 diff --cc includes/specialpage/ChangesListSpecialPage.php index dfdbc07d52,154e94e13b..faa2e7037c --- a/includes/specialpage/ChangesListSpecialPage.php +++ b/includes/specialpage/ChangesListSpecialPage.php @@@ -851,9 -856,17 +856,13 @@@ abstract class ChangesListSpecialPage e $tagStats = ChangeTags::tagUsageStatistics(); $tagHitCounts = array_merge( $explicitlyDefinedTags, $softwareActivatedTags, $tagStats ); - // Sort by hits - arsort( $tagHitCounts ); - */ - $tagHitCounts = array_merge( $explicitlyDefinedTags, $softwareActivatedTags ); + // Sort by hits (disabled for now) + //arsort( $tagHitCounts ); + // HACK work around ChangeTags::truncateTagDescription() requiring a RequestContext + $fakeContext = RequestContext::newExtraneousContext( Title::newFromText( 'Dwimmerlaik' ) ); + $fakeContext->setLanguage( Language::factory( $context->getLanguage() ) ); + // Build the list and data $result = []; foreach ( $tagHitCounts as $tagName => $hits ) {