Merge "Remove 'redundant' attribute from BaseTemplate::makeListItem() links in case...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 19 Aug 2019 14:10:51 +0000 (14:10 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 19 Aug 2019 14:10:51 +0000 (14:10 +0000)
includes/skins/BaseTemplate.php

index cd79259..cad69a5 100644 (file)
@@ -466,6 +466,10 @@ abstract class BaseTemplate extends QuickTemplate {
         * @return string
         */
        function makeListItem( $key, $item, $options = [] ) {
+               // In case this is still set from SkinTemplate, we don't want it to appear in
+               // the HTML output (normally removed in SkinTemplate::buildContentActionUrls())
+               unset( $item['redundant'] );
+
                if ( isset( $item['links'] ) ) {
                        $links = [];
                        foreach ( $item['links'] as $linkKey => $link ) {