Umherirrender has uploaded a new change for review. https://gerrit.wikimedia.org/r/109506
Change subject: Restore templatelinks count on info=action ...................................................................... Restore templatelinks count on info=action With I13b64db1 the list of the first 50 templatelinks was removed in miser mode, but that patch also removed the display of the templatelinks count, which was still quiered from database. Restore the count by re-add the message and show only the 'more...' link as the templatelist. Follow-Up: I13b64db1b23afd995cd0a2f5872fcedadd86c8ea Change-Id: I1f3bf7ebeb2c2dbcb00dae0784df7b257da200ca --- M includes/actions/InfoAction.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/06/109506/1 diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index a424b9d..2f9348e 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -585,8 +585,8 @@ ); } - if ( !$wgMiserMode && $pageCounts['transclusion']['to'] > 0 ) { - if ( $pageCounts['transclusion']['to'] > count( $transcludedTargets ) ) { + if ( $pageCounts['transclusion']['to'] > 0 ) { + if ( $wgMiserMode || $pageCounts['transclusion']['to'] > count( $transcludedTargets ) ) { $more = Linker::link( $whatLinksHere, $this->msg( 'moredotdotdot' )->escaped(), @@ -600,7 +600,7 @@ $pageInfo['header-properties'][] = array( $this->msg( 'pageinfo-transclusions' ) ->numParams( $pageCounts['transclusion']['to'] ), - Linker::formatTemplates( + $wgMiserMode ? $more : Linker::formatTemplates( $transcludedTargets, false, false, -- To view, visit https://gerrit.wikimedia.org/r/109506 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1f3bf7ebeb2c2dbcb00dae0784df7b257da200ca Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits