CoreTagHooks: Use parse() for output to HTML rather than text()
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 28 Oct 2014 19:57:47 +0000 (20:57 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 28 Oct 2014 19:57:47 +0000 (20:57 +0100)
Change-Id: I9f28afe185a24883fb575dd6df8a23c4ab233b64

includes/parser/CoreTagHooks.php

index 3ffa16c..df868ea 100644 (file)
@@ -135,7 +135,7 @@ class CoreTagHooks {
        public static function indicator( $content, array $attributes, Parser $parser, PPFrame $frame ) {
                if ( !isset( $attributes['name'] ) || trim( $attributes['name'] ) === '' ) {
                        return '<span class="error">' .
-                               wfMessage( 'invalid-indicator-name' )->inContentLanguage()->text() .
+                               wfMessage( 'invalid-indicator-name' )->inContentLanguage()->parse() .
                                '</span>';
                }