Reorder conditions from Werdna's previous commit; shortcut if not a user CSS/JS subpa...
authorRob Church <robchurch@users.mediawiki.org>
Sun, 21 Jan 2007 13:47:11 +0000 (13:47 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 21 Jan 2007 13:47:11 +0000 (13:47 +0000)
includes/Title.php

index aa4727c..62080d8 100644 (file)
@@ -1148,7 +1148,7 @@ class Title {
                        return false;
                }
                
-               if ( $doExpensiveQueries && $this->isCascadeProtected() && !$this->isCssJsSubpage() ) {
+               if ( $doExpensiveQueries && !$this->isCssJsSubpage() && $this->isCascadeProtected() ) {
                        # 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,