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