From: Rob Church Date: Tue, 2 May 2006 19:24:58 +0000 (+0000) Subject: Remove redundant check; this is covered in the blanket protection of the MediaWiki... X-Git-Tag: 1.31.0-rc.0~57268 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=529f3a30ffdaed74f32bfdf4b8c3c4b7f510157e;p=lhc%2Fweb%2Fwiklou.git Remove redundant check; this is covered in the blanket protection of the MediaWiki namespace above --- diff --git a/includes/Title.php b/includes/Title.php index 5d295a086a..3197b46ec4 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1011,14 +1011,6 @@ class Title { return false; } - # protect global styles and js - if ( NS_MEDIAWIKI == $this->mNamespace - && preg_match("/\\.(css|js)$/", $this->mTextform ) - && !$wgUser->isAllowed('editinterface') ) { - wfProfileOut( $fname ); - return false; - } - # protect css/js subpages of user pages # XXX: this might be better using restrictions # XXX: Find a way to work around the php bug that prevents using $this->userCanEditCssJsSubpage() from working