From 2cb5ce0379eaa26de364906a2fdf7731b60f3d42 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 19 Dec 2013 14:20:24 +0000 Subject: [PATCH] i18n: Make LogEventsList user language direction aware Bug: 58685 Change-Id: I9627689febb296dfeed588a52bfd30d8a9a46cda --- includes/logging/LogEventsList.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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(); -- 2.20.1