From eed96a39e3c8a3531c0cbcece1c7238f5e8bb7e8 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Sat, 7 Jul 2007 07:02:54 +0000 Subject: [PATCH] Per-page protection should take precedence over namespace protection when deciding what message to display. --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 527b92c028..ffc10b2111 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -976,7 +976,7 @@ class OutputPage { foreach( $cascadeSources as $title ) $titles .= "* [[:" . $title->getPrefixedText() . "]]\n"; $this->addWikiText( wfMsgExt( 'cascadeprotected', 'parsemag', $count ) . "\n{$titles}" ); - } elseif( $wgTitle->isNamespaceProtected() ) { + } elseif( !$wgTitle->isProtected( 'edit' ) && $wgTitle->isNamespaceProtected() ) { // Namespace protection global $wgNamespaceProtection; $ns = $wgTitle->getNamespace() == NS_MAIN -- 2.20.1