From: Andrew Garrett Date: Sun, 21 Jan 2007 12:43:07 +0000 (+0000) Subject: Ignore cascading protection for user CSS/JS subpages, as it's obvious that they were... X-Git-Tag: 1.31.0-rc.0~54253 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=c1b858e70b6fe9f64f9d6af24bc0ffcf049f5f57;p=lhc%2Fweb%2Fwiklou.git Ignore cascading protection for user CSS/JS subpages, as it's obvious that they were placed in user subpages to circumvent needing to protect them. This fixes at least one bot on enwiki --- diff --git a/includes/Title.php b/includes/Title.php index 205a20fa66..aa4727c9b3 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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,