Ignore cascading protection for user CSS/JS subpages, as it's obvious that they were...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 21 Jan 2007 12:43:07 +0000 (12:43 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 21 Jan 2007 12:43:07 +0000 (12:43 +0000)
includes/Title.php

index 205a20f..aa4727c 100644 (file)
@@ -1148,7 +1148,7 @@ class Title {
                        return false;
                }
                
-               if ( $doExpensiveQueries && $this->isCascadeProtected() ) {
+               if ( $doExpensiveQueries && $this->isCascadeProtected() && !$this->isCssJsSubpage() ) {
                        # We /could/ use the protection level on the source page, but it's fairly ugly
                        #  as we have to establish a precedence hierarchy for pages included by multiple
                        #  cascade-protected pages. So just restrict it to people with 'protect' permission,