Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -2050,11 +2050,13 @@ |
2051 | 2051 | # Add editor rights |
2052 | 2052 | $newGroups = $groups ; |
2053 | 2053 | array_push( $newGroups, 'editor' ); |
| 2054 | + $user->addGroup('editor'); |
| 2055 | + |
| 2056 | + wfLoadExtensionMessages( 'FlaggedRevs' ); |
2054 | 2057 | # Lets NOT spam RC, set $RC to false |
2055 | 2058 | $log = new LogPage( 'rights', false ); |
2056 | 2059 | $log->addEntry( 'rights', $user->getUserPage(), wfMsg('rights-editor-autosum'), |
2057 | 2060 | array( implode(', ',$groups), implode(', ',$newGroups) ) ); |
2058 | | - $user->addGroup('editor'); |
2059 | 2061 | |
2060 | 2062 | wfProfileOut( __METHOD__ ); |
2061 | 2063 | return true; |