From eee5e175844d4270f6572a4227897c185ef61052 Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Wed, 6 Aug 2008 01:07:58 +0000 Subject: [PATCH] (bug 15052) Skins should add their name as a class in --- RELEASE-NOTES | 1 + includes/Skin.php | 2 +- skins/Modern.php | 2 +- skins/MonoBook.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) 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"> -- 2.20.1