From: Aryeh Gregor Date: Tue, 4 Mar 2008 03:22:08 +0000 (+0000) Subject: All skins should have the "mediawiki" class on the body element X-Git-Tag: 1.31.0-rc.0~49260 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=1e2914b6ddc86bda615e8ec6a65f2ba3a59fde34;p=lhc%2Fweb%2Fwiklou.git All skins should have the "mediawiki" class on the body element --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0f192077a7..a7ccbe8cfe 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -61,6 +61,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 11561) Fix fatal error when calling action=revert to non-image page * (bug 12430) Fix call to private method LinkFilter::makeRegex fatal error in maintenance/cleanupSpam.php +* All skins should have the "mediawiki" class on the body element === API changes in 1.13 === diff --git a/includes/Skin.php b/includes/Skin.php index 230b642d72..f4c978f0c9 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -539,8 +539,10 @@ END; } $a['onload'] .= 'setupRightClickEdit()'; } - $a['class'] = 'ns-'.$wgTitle->getNamespace().' '.($wgContLang->isRTL() ? "rtl" : "ltr"). - ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ); + $a['class'] = + 'mediawiki ns-'.$wgTitle->getNamespace(). + ' '.($wgContLang->isRTL() ? "rtl" : "ltr"). + ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ); return $a; }