From 529f3a30ffdaed74f32bfdf4b8c3c4b7f510157e Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 2 May 2006 19:24:58 +0000 Subject: [PATCH] Remove redundant check; this is covered in the blanket protection of the MediaWiki namespace above --- includes/Title.php | 8 -------- 1 file changed, 8 deletions(-) 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 -- 2.20.1