Per-page protection should take precedence over namespace protection when deciding...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Sat, 7 Jul 2007 07:02:54 +0000 (07:02 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Sat, 7 Jul 2007 07:02:54 +0000 (07:02 +0000)
includes/OutputPage.php

index 527b92c..ffc10b2 100644 (file)
@@ -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