r19083 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19082‎ | r19083 | r19084 >
Date:19:05, 10 January 2007
Author:werdna
Status:old
Tags:
Comment:
NS_MEDIA !== NS_IMAGE
Modified paths:
  • /branches/werdna/restrictions-separation/includes/Title.php (modified) (history)

Diff [purge]

Index: branches/werdna/restrictions-separation/includes/Title.php
@@ -1118,7 +1118,7 @@
11191119 }
11201120
11211121 if ( ( $this->isCascadeProtectedPage() ) ||
1122 - ($this->getNamespace == NS_MEDIA && $this->isCascadeProtectedImage() ) ) {
 1122+ ($this->getNamespace == NS_IMAGE && $this->isCascadeProtectedImage() ) ) {
11231123 # We /could/ use the protection level on the source page, but it's fairly ugly
11241124 # as we have to establish a precedence hierarchy for pages included by multiple
11251125 # cascade-protected pages. So just restrict it to people with 'protect' permission,