r36746 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36745‎ | r36746 | r36747 >
Date:13:50, 27 June 2008
Author:demon
Status:old
Tags:
Comment:
wrapWikiMsg() instead of doing it raw.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUpload.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUpload.php
@@ -1515,7 +1515,7 @@
15161516
15171517 if ( !$wgAntivirusSetup[$wgAntivirus] ) {
15181518 wfDebug( __METHOD__.": unknown virus scanner: $wgAntivirus\n" );
1519 - $wgOut->addHTML( "<div class='error'>" . wfMsg('virus-badscanner') . " <i>$wgAntivirus</i></div>\n" );
 1519+ $wgOut->wrapWikiMsg( '<div class="error">$1</div>', array( 'virus-badscanner', $wgAntivirus ) );
15201520 return wfMsg('virus-unknownscanner') . " $wgAntivirus";
15211521 }
15221522
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -838,7 +838,7 @@
839839 The reason given is ''$2''.",
840840
841841 # Virus scanner
842 -'virus-badscanner' => "Bad configuration: unknown virus scanner:",
 842+'virus-badscanner' => "Bad configuration: unknown virus scanner: <i>$1</i>",
843843 'virus-scanfailed' => "scan failed (code $1)",
844844 'virus-unknownscanner' => "unknown antivirus:",
845845

Status & tagging log