SpecialCite: fix escaping of message

Linker::link takes raw HTML, so use ->escaped().

Also use $skin->msg() instead of wfMessage.

Change-Id: I56c0791d31897793b0e8cd8ac18ea337a96d1ff0
This commit is contained in:
Kunal Mehta 2014-06-22 19:36:19 -07:00
parent 52195376d5
commit 8c1494e5bb

View file

@ -79,7 +79,7 @@ function wfSpecialCiteToolbox( &$skin ) {
array( 'id' => 't-cite' ),
Linker::link(
SpecialPage::getTitleFor( 'Cite' ),
wfMessage( 'cite_article_link' )->text(), // @todo Should be escaped()?
$skin->msg( 'cite_article_link' )->escaped(),
# Used message keys: 'tooltip-cite-article', 'accesskey-cite-article'
Linker::tooltipAndAccessKeyAttribs( 'cite-article' ),
$skin->data['nav_urls']['cite']['args']