r19082 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19081‎ | r19082 | r19083 >
Date:19:02, 10 January 2007
Author:werdna
Status:old
Tags:
Comment:
re-add namespace restriction for NS_MEDIA - imagelinks doesn't make any sense elsewhere.
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->isCascadeProtectedImage() ) ) {
 1122+ ($this->getNamespace == NS_MEDIA && $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,