r52372 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52371‎ | r52372 | r52373 >
Date:19:43, 24 June 2009
Author:ialex
Status:deferred
Tags:
Comment:
same as r52370, insert after editcount if registration date is not set
Modified paths:
  • /trunk/extensions/OnlineStatus/OnlineStatus.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatus/OnlineStatus.php
@@ -253,8 +253,10 @@
254254 'help-message' => 'onlinestatus-toggles-explain',
255255 )
256256 );
257 - $preferences = wfArrayInsertAfter( $preferences, $prefs, 'registrationdate' );
258257
 258+ $after = array_key_exists( 'registrationdate', $preferences ) ? 'registrationdate' : 'editcount';
 259+ $preferences = wfArrayInsertAfter( $preferences, $prefs, $after );
 260+
259261 return true;
260262 }
261263

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r52370(bug 19265) Insert global user account status after editcount if registration...ialex19:07, 24 June 2009

Status & tagging log