In r60786 mah added 'specialpageattributes' to the skin, only in the case of the...
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 7 Jan 2010 18:59:07 +0000 (18:59 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 7 Jan 2010 18:59:07 +0000 (18:59 +0000)
includes/SkinTemplate.php
skins/Modern.php
skins/MonoBook.php
skins/Vector.php

index 3c52dcd..1566f26 100644 (file)
@@ -305,9 +305,6 @@ class SkinTemplate extends Skin {
                $tpl->setRef( 'userpageurl', $this->userpageUrlDetails['href'] );
                $tpl->set( 'userlang', $wgLang->getCode() );
                $tpl->set( 'userlangattributes', 'lang="' . $wgLang->getCode() . '" xml:lang="' . $wgLang->getCode() . '" dir="' . $wgLang->getDir() . '"');
-               if($this->mTitle->isSpecialPage()) {
-                       $tpl->set( 'specialpageattributes', 'lang="' . $wgLang->getCode() . '" xml:lang="' . $wgLang->getCode() . '" dir="' . $wgLang->getDir() . '"');
-               }
 
                $newtalks = $wgUser->getNewMessageLinks();
 
index aa95adc..04d2b72 100644 (file)
@@ -113,7 +113,7 @@ class ModernTemplate extends QuickTemplate {
        <!-- contentholder does nothing by default, but it allows users to style the text inside
             the content area without affecting the meaning of 'em' in #mw_content, which is used
             for the margins -->
-       <div id="mw_contentholder" <?php $this->html("specialpageattributes") ?>>
+       <div id="mw_contentholder" <?php $this->html("userlangattributes") ?>>
                <div class='mw-topboxes'>
                        <div id="mw-js-message" style="display:none;" <?php $this->html('userlangattributes')?>></div>
                        <div class="mw-topbox" id="siteSub"><?php $this->msg('tagline') ?></div>
index 3c2c1a3..a90250f 100644 (file)
@@ -81,7 +81,7 @@ class MonoBookTemplate extends QuickTemplate {
  class="mediawiki <?php $this->text('dir'); $this->text('capitalizeallnouns') ?> <?php $this->text('pageclass') ?> <?php $this->text('skinnameclass') ?>">
        <div id="globalWrapper">
                <div id="column-content">
-       <div id="content" <?php $this->html("specialpageattributes") ?>>
+       <div id="content" <?php $this->html("userlangattributes") ?>>
                <a id="top"></a>
                <?php if($this->data['sitenotice']) { ?><div id="siteNotice"><?php $this->html('sitenotice') ?></div><?php } ?>
                <h1 id="firstHeading" class="firstHeading"><?php $this->html('title') ?></h1>
index fc9f3c3..56481ca 100644 (file)
@@ -463,7 +463,7 @@ class VectorTemplate extends QuickTemplate {
                <div id="page-base" class="noprint"></div>
                <div id="head-base" class="noprint"></div>
                <!-- content -->
-               <div id="content" <?php $this->html('specialpageattributes') ?>>
+               <div id="content" <?php $this->html('userlangattributes') ?>>
                        <a id="top"></a>
                        <div id="mw-js-message" style="display:none;" <?php $this->html('userlangattributes') ?>></div>
                        <?php if ( $this->data['sitenotice'] ): ?>