* (bug 21559) "logempty" message is now wrapped in a div with class "mw-warning-logem...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 4 Dec 2009 18:37:54 +0000 (18:37 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 4 Dec 2009 18:37:54 +0000 (18:37 +0000)
RELEASE-NOTES
includes/LogEventsList.php

index 7530fc7..075fa68 100644 (file)
@@ -665,6 +665,8 @@ Hopefully we will remove this configuration var soon)
   due to an infinite loop of job requeues.
 * (bug 21523) File that can have multiple pages (djvu, pdf, ...) no longer have
   the page selector when they have only one page
   due to an infinite loop of job requeues.
 * (bug 21523) File that can have multiple pages (djvu, pdf, ...) no longer have
   the page selector when they have only one page
+* (bug 21559) "logempty" message is now wrapped in a div with class
+  "mw-warning-logempty" when used in log extract
 
 == API changes in 1.16 ==
 
 
 == API changes in 1.16 ==
 
index cfbadeb..0e4a72c 100644 (file)
@@ -658,7 +658,8 @@ class LogEventsList {
                                 $loglist->endLogEventsList();
                } else {
                        if ( $showIfEmpty )
                                 $loglist->endLogEventsList();
                } else {
                        if ( $showIfEmpty )
-                               $s = wfMsgExt( 'logempty', array('parse') );
+                               $s = Html::rawElement( 'div', array( 'class' => 'mw-warning-logempty' ),
+                                       wfMsgExt( 'logempty', array( 'parseinline' ) ) );
                }
                if( $pager->getNumRows() > $pager->mLimit ) { # Show "Full log" link
                        $urlParam = array();
                }
                if( $pager->getNumRows() > $pager->mLimit ) { # Show "Full log" link
                        $urlParam = array();