Make user rights conflict error a bit more obvious
authorGergő Tisza <tgr.huwiki@gmail.com>
Mon, 7 Jan 2019 01:36:43 +0000 (17:36 -0800)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 7 Jan 2019 16:38:29 +0000 (08:38 -0800)
Bug: T113048
Change-Id: Ia3992dcb473ec428188505e22b2def75fd23f98e

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,