http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94205

Revision: 94205
Author:   robin
Date:     2011-08-10 22:19:57 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
Re-add historysubmit, removed in r92984. This broke directionality support when 
viewing diffs.

Modified Paths:
--------------
    trunk/phase3/includes/SkinTemplate.php

Modified: trunk/phase3/includes/SkinTemplate.php
===================================================================
--- trunk/phase3/includes/SkinTemplate.php      2011-08-10 21:54:38 UTC (rev 
94204)
+++ trunk/phase3/includes/SkinTemplate.php      2011-08-10 22:19:57 UTC (rev 
94205)
@@ -410,7 +410,7 @@
                # not for special pages or file pages AND only when viewing AND 
if the page exists
                # (or is in MW namespace, because that has default content)
                if( !in_array( $this->getTitle()->getNamespace(), array( 
NS_SPECIAL, NS_FILE ) ) &&
-                       $wgRequest->getVal( 'action', 'view' ) == 'view' &&
+                       in_array( $wgRequest->getVal( 'action', 'view' ), 
array( 'view', 'historysubmit' ) ) &&
                        ( $this->getTitle()->exists() || 
$this->getTitle()->getNamespace() == NS_MEDIAWIKI ) ) {
                        $pageLang = $this->getTitle()->getPageLanguage();
                        $realBodyAttribs = array( 'lang' => 
$pageLang->getCode(), 'dir' => $pageLang->getDir(),


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to