From: Ebrahim Byagowi Date: Thu, 19 Dec 2013 14:20:24 +0000 (+0000) Subject: i18n: Make LogEventsList user language direction aware X-Git-Tag: 1.31.0-rc.0~17573 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=2cb5ce0379eaa26de364906a2fdf7731b60f3d42;p=lhc%2Fweb%2Fwiklou.git i18n: Make LogEventsList user language direction aware Bug: 58685 Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda --- diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index c069fdbbc9..ead418d93a 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -561,7 +561,14 @@ class LogEventsList extends ContextSource { if ( $logBody ) { if ( $msgKey[0] ) { - $s = '
'; + $dir = $context->getLanguage()->getDir(); + $lang = $context->getLanguage()->getCode(); + + $s = Xml::openElement( 'div', array( + 'class' => "mw-warning-with-logexcerpt mw-content-$dir", + 'dir' => $dir, + 'lang' => $lang, + ) ); if ( count( $msgKey ) == 1 ) { $s .= $context->msg( $msgKey[0] )->parseAsBlock();