Removed print and render actions from the check:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 Jul 2011 07:56:22 +0000 (07:56 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 11 Jul 2011 07:56:22 +0000 (07:56 +0000)
* 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

index 898a048..6002cc0 100644 (file)
@@ -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(),