r91859 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91858‎ | r91859 | r91860 >
Date:07:56, 11 July 2011
Author:ialex
Status:ok
Tags:
Comment:
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
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -453,7 +453,7 @@
454454 # not for special pages or file pages AND only when viewing AND if the page exists
455455 # (or is in MW namespace, because that has default content)
456456 if( !in_array( $this->getTitle()->getNamespace(), array( NS_SPECIAL, NS_FILE ) ) &&
457 - in_array( $action, array( 'view', 'render', 'print', 'historysubmit' ) ) &&
 457+ in_array( $action, array( 'view', 'historysubmit' ) ) &&
458458 ( $this->getTitle()->exists() || $this->getTitle()->getNamespace() == NS_MEDIAWIKI ) ) {
459459 $pageLang = $this->getTitle()->getPageLanguage();
460460 $realBodyAttribs = array( 'lang' => $pageLang->getCode(), 'dir' => $pageLang->getDir(),

Status & tagging log