Remove redundant check; this is covered in the blanket protection of the MediaWiki...
authorRob Church <robchurch@users.mediawiki.org>
Tue, 2 May 2006 19:24:58 +0000 (19:24 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 2 May 2006 19:24:58 +0000 (19:24 +0000)
includes/Title.php

index 5d295a0..3197b46 100644 (file)
@@ -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