MediaWiki update
authorJesper Kristensen <mail@jesperkristensen.dk>
Sat, 07 Sep 2013 16:53:57 +0200
changeset 301 b109793058308d871fdd849a8d37ace3e81ad583
parent 298 c60929a120a22179ca300e6088422d5d426c9dc0
child 302 6ccc8676fc01fb556c56d39e526335228afa7bb9
push id147
push usermail@jesperkristensen.dk
push dateSat, 07 Sep 2013 15:00:26 +0000
MediaWiki update
mediawiki/INSTALL
mediawiki/theme/MCS.php
--- a/mediawiki/INSTALL
+++ b/mediawiki/INSTALL
@@ -1,10 +1,10 @@
 1) Download latest stable Mediawiki from http://www.mediawiki.org/
- * Tested with MediaWiki version 1.19
+ * Tested with MediaWiki version 1.21.2
 
 2) Setup MediaWiki
 
 3) Prettify URLs
  * Modify your LocalSettings.php by adding several lines below $wgScriptPath:
   $wgScriptPath       = "%%RELPATH%%";
   $wgArticlePath      = "$wgScriptPath/$1";
   $wgScriptExtension  = ".php";
--- a/mediawiki/theme/MCS.php
+++ b/mediawiki/theme/MCS.php
@@ -166,17 +166,20 @@ if ($toc and $this->tocPos=='right') {
 			</ul>
 			<div id="content" class="section">
 				<?php if ($ca_strong) { ?>
 					<ul class="mcs_edit_button metabox linklist right">
 						<?php echo $ca_strong; ?>
 					</ul>
 				<?php } ?>
 				<div class="article">
-					<h1><?php $this->html('title') ?></h1>
+					<h1 lang="<?php
+						$this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getCode();
+						$this->html( 'pageLanguage' );
+					?>"><?php $this->html('title') ?></h1>
 <?php if ($this->data['newtalk'] or $this->data['sitenotice']) { ?>
 					<div class='mw-topboxes'>
 						<?php if($this->data['newtalk'] ) {
 							?><div class="notice"><?php $this->html('newtalk')  ?></div>
 						<?php } ?>
 						<?php if($this->data['sitenotice']) {
 							?><div class="notice" id="siteNotice"><?php $this->html('sitenotice') ?></div>
 						<?php } ?>