Merge "Make user rights conflict error a bit more obvious"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 7 Jan 2019 17:00:01 +0000 (17:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 7 Jan 2019 17:00:01 +0000 (17:00 +0000)
includes/specials/SpecialUserrights.php

index 94b8184..3c2907b 100644 (file)
@@ -175,7 +175,7 @@ class UserrightsPage extends SpecialPage {
                        $userGroups = $targetUser->getGroups();
 
                        if ( $userGroups !== $conflictCheck ) {
-                               $out->addWikiMsg( 'userrights-conflict' );
+                               $out->wrapWikiMsg( '<span class="error">$1</span>', 'userrights-conflict' );
                        } else {
                                $status = $this->saveUserGroups(
                                        $this->mTarget,