Merge "Normalize titles in template descriptions in context menu"

This commit is contained in:
jenkins-bot 2014-06-25 21:10:35 +00:00 committed by Gerrit Code Review
commit cba201eb03

View file

@ -64,7 +64,12 @@ ve.ce.MWTransclusionNode.static.getDescription = function ( model ) {
}
}
return words.join( ', ' );
return words
.map( function ( template ) {
var title = mw.Title.newFromText( template );
return title ? title.getPrefixedText() : template;
} )
.join( ', ' );
};
/* Methods */