Fixes for r56284:
authorAlex Z <mrzman@users.mediawiki.org>
Mon, 14 Sep 2009 02:17:31 +0000 (02:17 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Mon, 14 Sep 2009 02:17:31 +0000 (02:17 +0000)
* Parse the message shown in the box
* Fix undefined variable notice

includes/LogEventsList.php

index dfe6fa6..e7e4dbe 100644 (file)
@@ -575,9 +575,10 @@ class LogEventsList {
                $pager = new LogPager( $loglist, $types, $user, $page, '', $conds );
                if( $lim > 0 ) $pager->mLimit = $lim;
                $logBody = $pager->getBody();
+               $s = '';
                if( $logBody ) {
                        if ( $msgKey )
-                               $s = '<div class="mw-warning-with-logexcerpt">' . wfMsg( $msgKey ) ;
+                               $s = '<div class="mw-warning-with-logexcerpt">' . wfMsgExt( $msgKey, array('parse') ) ;
                        $s .= $loglist->beginLogEventsList() .
                                 $logBody .
                                 $loglist->endLogEventsList();