From: Robin Pepermans Date: Wed, 10 Aug 2011 22:19:57 +0000 (+0000) Subject: Re-add historysubmit, removed in r92984. This broke directionality support when viewi... X-Git-Tag: 1.31.0-rc.0~28369 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=175e72cd8907610e52bccacf1c47b0a84be43a4c;p=lhc%2Fweb%2Fwiklou.git Re-add historysubmit, removed in r92984. This broke directionality support when viewing diffs. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0a4ebcb921..2268b5194d 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -410,7 +410,7 @@ class SkinTemplate extends Skin { # 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(),