From 4c9d4bfd2cbda4c9d65a9fe2b89520999560e8f7 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 29 Apr 2004 10:58:19 +0000 Subject: [PATCH] allow sysops to edit user styles/js --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 2e36078229..cd55e7420e 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -491,7 +491,7 @@ class Title { # XXX: this might be better using restrictions if( Namespace::getUser() == $this->mNamespace and preg_match("/\\.(css|js)$/", $this->mTextform ) - and !$wgUser->isDeveloper() + and !$wgUser->isSysop() and !preg_match("/^".$wgUser->getName()."/", $this->mTextform) ) { return false; } -- 2.20.1