r23838 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23837‎ | r23838 | r23839 >
Date:07:02, 7 July 2007
Author:amidaniel
Status:old
Tags:
Comment:
Per-page protection should take precedence over namespace protection when deciding what message to display.
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -976,7 +976,7 @@
977977 foreach( $cascadeSources as $title )
978978 $titles .= "* [[:" . $title->getPrefixedText() . "]]\n";
979979 $this->addWikiText( wfMsgExt( 'cascadeprotected', 'parsemag', $count ) . "\n{$titles}" );
980 - } elseif( $wgTitle->isNamespaceProtected() ) {
 980+ } elseif( !$wgTitle->isProtected( 'edit' ) && $wgTitle->isNamespaceProtected() ) {
981981 // Namespace protection
982982 global $wgNamespaceProtection;
983983 $ns = $wgTitle->getNamespace() == NS_MAIN

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log