From 26128543b4c7c9decabcf30d5d55fb45418eeac8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 31 Aug 2006 16:53:02 +0000 Subject: [PATCH] * (bug 6976) Add namespace and direction classes to classic skins http://bugzilla.wikimedia.org/attachment.cgi?id=2215&action=view --- RELEASE-NOTES | 1 + includes/Skin.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 43ee71a26b..4135c1ea18 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -173,6 +173,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN any of the templates listed at [[MediaWiki:Disambiguationspage]]. * Fix formatting of titles on Special:Undelete * (bug 7026) Fix action=raw&templates=expand +* (bug 6976) Add namespace and direction classes to classic skins == Languages updated == diff --git a/includes/Skin.php b/includes/Skin.php index e82dcb40ca..07ab0c0ccb 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -453,7 +453,7 @@ END; } function getBodyOptions() { - global $wgUser, $wgTitle, $wgOut, $wgRequest; + global $wgUser, $wgTitle, $wgOut, $wgRequest, $wgContLang; extract( $wgRequest->getValues( 'oldid', 'redirect', 'diff' ) ); @@ -476,6 +476,7 @@ END; } $a['onload'] .= 'setupRightClickEdit()'; } + $a['class'] = 'ns-'.$wgTitle->getNamespace().' '.($wgContLang->isRTL() ? "rtl" : "ltr"); return $a; } -- 2.20.1