Index: trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php |
— | — | @@ -110,10 +110,13 @@ |
111 | 111 | } |
112 | 112 | |
113 | 113 | // From here on no more errors should occur. Create list of errors. |
114 | | - $errorsFragment = $this->mMessages->getMessagesFormatted( LingoMessageLog::MESSAGE_NOTICE, wfMsg( 'semanticglossary-messageheader' ) ); |
| 114 | + $errors = $this->mMessages->getMessagesFormatted( LingoMessageLog::MESSAGE_NOTICE, wfMsg( 'semanticglossary-messageheader' ) ); |
115 | 115 | |
116 | | - if ( $errorsFragment ) { |
117 | | - $errorsFragment .= Html::rawElement( 'hr' ); |
| 116 | + if ( $errors !== null ) { |
| 117 | + $wgOut->addParserOutputNoText( $errors ); |
| 118 | + $errorsFragment = $errors->getText() . Html::rawElement( 'hr' ); |
| 119 | + } else { |
| 120 | + $errorsFragment = ''; |
118 | 121 | } |
119 | 122 | |
120 | 123 | if ( $hasEditRights ) { |