All skins should have the "mediawiki" class on the body element
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 4 Mar 2008 03:22:08 +0000 (03:22 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 4 Mar 2008 03:22:08 +0000 (03:22 +0000)
RELEASE-NOTES
includes/Skin.php

index 0f19207..a7ccbe8 100644 (file)
@@ -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 ===
 
index 230b642..f4c978f 100644 (file)
@@ -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;
        }