r52370 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52369‎ | r52370 | r52371 >
Date:19:07, 24 June 2009
Author:ialex
Status:deferred
Tags:
Comment:
(bug 19265) Insert global user account status after editcount if registration date is not set
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthHooks.php
@@ -82,7 +82,8 @@
8383 ),
8484 );
8585
86 - $preferences = wfArrayInsertAfter( $preferences, $prefInsert, 'registrationdate' );
 86+ $after = array_key_exists( 'registrationdate', $preferences ) ? 'registrationdate' : 'editcount';
 87+ $preferences = wfArrayInsertAfter( $preferences, $prefInsert, $after );
8788
8889 return true;
8990 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r52372same as r52370, insert after editcount if registration date is not setialex19:43, 24 June 2009

Status & tagging log