From ff28f7a0e7f3871dd5be35734427cc5cf1e8aa49 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 11 Jul 2011 07:56:22 +0000 Subject: [PATCH] Removed print and render actions from the check: * print was removed in 86373 * render does not reach this point since it simply output the content without any part of the skin --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 898a04838e..6002cc0ae8 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -453,7 +453,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 ) ) && - in_array( $action, array( 'view', 'render', 'print', 'historysubmit' ) ) && + in_array( $action, 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