From: Jack Phoenix Date: Wed, 6 Aug 2008 01:07:58 +0000 (+0000) Subject: (bug 15052) Skins should add their name as a class in X-Git-Tag: 1.31.0-rc.0~46100 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=eee5e175844d4270f6572a4227897c185ef61052;p=lhc%2Fweb%2Fwiklou.git (bug 15052) Skins should add their name as a class in --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f76cdefdf0..33e3c339a8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -57,6 +57,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 2333) Redirects are properly rendered when previewing an edit. * (bug 14972) Use localized alias of Special:Search on all search forms * (bug 11035) Special:Search should have descriptive +* (bug 15052) Skins should add their name as a class in <body> === API changes in 1.14 === diff --git a/includes/Skin.php b/includes/Skin.php index 71ada4cf87..4e3bb81693 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -551,7 +551,7 @@ END; $a['class'] = 'mediawiki ns-'.$wgTitle->getNamespace(). ' '.($wgContLang->isRTL() ? "rtl" : "ltr"). - ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ); + ' '.Sanitizer::escapeClass( 'page-'.$wgTitle->getPrefixedText() ) .' '. get_class( $this ); return $a; } diff --git a/skins/Modern.php b/skins/Modern.php index b4067433c0..6961a22de2 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -95,7 +95,7 @@ class ModernTemplate extends QuickTemplate { </head> <body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?> <?php if($this->data['body_onload' ]) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?> - class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>"> + class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinclass') ?>"> <!-- heading --> <div id="mw_header"><h1 id="firstHeading"><?php $this->data['displaytitle']!=""?$this->html('title'):$this->text('title') ?></h1></div> diff --git a/skins/MonoBook.php b/skins/MonoBook.php index a96a14785c..86248eebdd 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -104,7 +104,7 @@ class MonoBookTemplate extends QuickTemplate { </head> <body<?php if($this->data['body_ondblclick']) { ?> ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?> <?php if($this->data['body_onload']) { ?> onload="<?php $this->text('body_onload') ?>"<?php } ?> - class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>"> + class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinclass') ?>"> <div id="globalWrapper"> <div id="column-content"> <div id="content">