http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89896
Revision: 89896
Author: foxtrott
Date: 2011-06-11 21:40:11 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
use returned ParserOutput from MessageLog
Modified Paths:
--------------
trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
Modified: trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
===================================================================
--- trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
2011-06-11 21:38:48 UTC (rev 89895)
+++ trunk/extensions/SemanticGlossary/SpecialSemanticGlossaryBrowser.php
2011-06-11 21:40:11 UTC (rev 89896)
@@ -110,10 +110,13 @@
}
// From here on no more errors should occur. Create list of
errors.
- $errorsFragment = $this->mMessages->getMessagesFormatted(
LingoMessageLog::MESSAGE_NOTICE, wfMsg( 'semanticglossary-messageheader' ) );
+ $errors = $this->mMessages->getMessagesFormatted(
LingoMessageLog::MESSAGE_NOTICE, wfMsg( 'semanticglossary-messageheader' ) );
- if ( $errorsFragment ) {
- $errorsFragment .= Html::rawElement( 'hr' );
+ if ( $errors !== null ) {
+ $wgOut->addParserOutputNoText( $errors );
+ $errorsFragment = $errors->getText() .
Html::rawElement( 'hr' );
+ } else {
+ $errorsFragment = '';
}
if ( $hasEditRights ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs