dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c17e2e9
)
Per-page protection should take precedence over namespace protection when deciding...
author
Daniel Cannon
<amidaniel@users.mediawiki.org>
Sat, 7 Jul 2007 07:02:54 +0000
(07:02 +0000)
committer
Daniel Cannon
<amidaniel@users.mediawiki.org>
Sat, 7 Jul 2007 07:02:54 +0000
(07:02 +0000)
includes/OutputPage.php
patch
|
blob
|
history
diff --git
a/includes/OutputPage.php
b/includes/OutputPage.php
index
527b92c
..
ffc10b2
100644
(file)
--- 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