r34303 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34302‎ | r34303 | r34304 >
Date:10:49, 6 May 2008
Author:werdna
Status:old
Tags:
Comment:
Revert r34282. User class not created yet, causes fatal errors :(
Modified paths:
  • /trunk/extensions/Resign/SpecialResign.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Resign/SpecialResign.php
@@ -19,8 +19,10 @@
2020 );
2121
2222 # Add resign permission for every group set in the database
23 -foreach( User::getAllGroups() as $group ) {
24 - $wgGroupPermissions[$group]['resign'] = true;
 23+foreach( $wgGroupPermissions as $key => $value ) {
 24+ if( !in_array( $key, $wgImplicitGroups ) ) {
 25+ $wgGroupPermissions[$key]['resign'] = true;
 26+ }
2527 }
2628
2729 # Add log action

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r34282Just use User::getAllGroups() here, that's what it's there for.simetrical23:24, 5 May 2008

Status & tagging log