r39115 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39114‎ | r39115 | r39116 >
Date:04:00, 11 August 2008
Author:aaron
Status:old
Tags:
Comment:
load messages here
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -2050,11 +2050,13 @@
20512051 # Add editor rights
20522052 $newGroups = $groups ;
20532053 array_push( $newGroups, 'editor' );
 2054+ $user->addGroup('editor');
 2055+
 2056+ wfLoadExtensionMessages( 'FlaggedRevs' );
20542057 # Lets NOT spam RC, set $RC to false
20552058 $log = new LogPage( 'rights', false );
20562059 $log->addEntry( 'rights', $user->getUserPage(), wfMsg('rights-editor-autosum'),
20572060 array( implode(', ',$groups), implode(', ',$newGroups) ) );
2058 - $user->addGroup('editor');
20592061
20602062 wfProfileOut( __METHOD__ );
20612063 return true;

Status & tagging log