From 0f0e1b307dc01d9923198b5ed51e5a35bd654d43 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 4 Dec 2009 18:37:54 +0000 Subject: [PATCH] * (bug 21559) "logempty" message is now wrapped in a div with class "mw-warning-logempty" when used in log extract --- RELEASE-NOTES | 2 ++ includes/LogEventsList.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7530fc74e2..075fa6805b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 +* (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 == diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index cfbadeb343..0e4a72c2b7 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -658,7 +658,8 @@ class LogEventsList { $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(); -- 2.20.1