From 175e72cd8907610e52bccacf1c47b0a84be43a4c Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Wed, 10 Aug 2011 22:19:57 +0000 Subject: [PATCH] Re-add historysubmit, removed in r92984. This broke directionality support when viewing diffs. --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(), -- 2.20.1