From: Liangent Date: Sat, 17 Nov 2012 18:32:57 +0000 (+0800) Subject: Set correct language for page content in action=historysubmit&revisiondelete=1 X-Git-Tag: 1.31.0-rc.0~21599^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=6f0f4c8f2053a486d445a59d328d19bcefa67add;p=lhc%2Fweb%2Fwiklou.git Set correct language for page content in action=historysubmit&revisiondelete=1 Change-Id: Iabfb9a58e023b56556100b340f8ebdb0bdc51d8f --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index dcc37d75bc..341983d311 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -398,7 +398,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( $title->getNamespace(), array( NS_SPECIAL, NS_FILE ) ) && - in_array( $request->getVal( 'action', 'view' ), array( 'view', 'historysubmit' ) ) && + Action::getActionName( $this ) === 'view' && ( $title->exists() || $title->getNamespace() == NS_MEDIAWIKI ) ) { $pageLang = $title->getPageViewLanguage(); $realBodyAttribs['lang'] = $pageLang->getHtmlCode();