Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -80,16 +80,16 @@ |
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | | - * Produce the text of the message. |
| 84 | + * Produce the template that contains the text of the message. |
85 | 85 | * @returns String |
86 | 86 | */ |
87 | 87 | static function fetchText() { |
88 | | - $text = self::fetchTemplateIfExists( wfMsg( 'newusermessage-template-body' ) ); |
| 88 | + $template = wfMsg( 'newusermessage-template-body' ); |
89 | 89 | // Fall back if necessary to the old template |
90 | | - if ( !$text ) { |
91 | | - $text = self::fetchTemplateIfExists( wfMsg( 'newusermessage-template' ) ); |
| 90 | + if ( !$template ) { |
| 91 | + $template = wfMsg( 'newusermessage-template' ); |
92 | 92 | } |
93 | | - return $text; |
| 93 | + return $template; |
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
— | — | @@ -124,9 +124,9 @@ |
125 | 125 | $substitute = wfMsgForContent( 'newusermessage-substitute' ); |
126 | 126 | |
127 | 127 | if ( $substitute ) { |
128 | | - $str = "{{subst:{{$str}}}|realName=$realName|name=$name}}"; |
| 128 | + $str = '{{subst:' . "$str|realName=$realName|name=$name}}"; |
129 | 129 | } else { |
130 | | - $str = "{{{$str}|realName=$realName|name=$name}}"; |
| 130 | + $str = '{{' . "$str|realName=$realName|name=$name}}"; |
131 | 131 | } |
132 | 132 | |
133 | 133 | if ( $preparse ) { |