Index: trunk/extensions/Translate/utils/ToolBox.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | * available translations for a message. Only shown when it |
9 | 9 | * actually is a translatable/translated message. |
10 | 10 | */ |
11 | | - function toolboxAllTranslations(&$skin) { |
| 11 | + static function toolboxAllTranslations(&$skin) { |
12 | 12 | global $wgTitle; |
13 | 13 | |
14 | 14 | $inMessageGroup = TranslateUtils::messageKeyToGroup( $wgTitle->getNamespace(), $wgTitle->getBaseText() ); |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | // Add a slash at the end, to not have basename in the result of Special:Prefixindex |
20 | 20 | $prefix = $wgTitle->getNsText().":".$wgTitle->getBaseText()."/"; |
21 | 21 | $desc = wfMsg( 'translate-sidebar-alltrans' ); |
22 | | - $url = SpecialPage::getTitleFor( 'Prefixindex' )->getLocalURL('from='.$prefix); |
| 22 | + $url = htmlspecialchars( SpecialPage::getTitleFor( 'Prefixindex' )->getLocalURL('from='.$prefix) ); |
23 | 23 | |
24 | 24 | // Add the actual toolbox entry. |
25 | 25 | // Add newlines and tabs for nicer HTML output. |