From: Alexandre Emsenhuber Date: Mon, 11 Jul 2011 07:56:22 +0000 (+0000) Subject: Removed print and render actions from the check: X-Git-Tag: 1.31.0-rc.0~28943 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ff28f7a0e7f3871dd5be35734427cc5cf1e8aa49;p=lhc%2Fweb%2Fwiklou.git 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 --- 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(),