From def92663488b0eb7070fee18ac4fee36b3722507 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Fri, 1 Jul 2011 21:28:11 +0000 Subject: [PATCH] Add lang & dir attributes to the sitenotice, in the site content language --- includes/Skin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 4b06e1d86e..39d6a4efd5 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1430,7 +1430,7 @@ abstract class Skin { * @return String: HTML fragment */ private function getCachedNotice( $name ) { - global $wgRenderHashAppend, $parserMemc; + global $wgRenderHashAppend, $parserMemc, $wgContLang; wfProfileIn( __METHOD__ ); @@ -1472,7 +1472,8 @@ abstract class Skin { $notice = $parsed; } - $notice = '
' .$notice . '
'; + $notice = Html::rawElement( 'div', array( 'id' => 'localNotice', + 'lang' => $wgContLang->getCode(), 'dir' => $wgContLang->getDir() ), $notice ); wfProfileOut( __METHOD__ ); return $notice; } -- 2.20.1