r23578 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23577‎ | r23578 | r23579 >
Date:04:06, 30 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Yes, now actually ditch the old code. :D
Modified paths:
  • /trunk/phase3/includes/SpecialUserrights.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserrights.php
@@ -247,49 +247,6 @@
248248 return count( $out ) > 0
249249 ? implode( ' ', $out )
250250 : wfMsgExt( 'userrights-available-none', 'parseinline' );
251 -
252 -
253 - $groups = $wgUser->getEffectiveGroups();
254 - foreach( $groups as $group ) {
255 - if( $this->changeableByGroup( $group ) == array(
256 - 'add' => array(),
257 - 'remove' => array()
258 - ) ) {
259 - // Can't add or remove anything, ignore this group
260 - $groups = array_diff( $groups, array( $group ) );
261 - }
262 - }
263 - $grouplists = array( $groups );
264 - list( $grouplists[1], $grouplists[2] ) = array_values( $this->changeableGroups() );
265 -
266 -
267 -
268 - // Now format them nicely for display (yay mutable variables? I'm sick
269 - // of thinking up new names)
270 - foreach( $grouplists as &$list ) {
271 - if( $list == array() ) {
272 - $list = wfMsgExt( 'userrights-list-nogroups', 'parseinline' );
273 - } else {
274 - $list = wfMsgExt(
275 - 'userrights-list-groups',
276 - 'parseinline',
277 - count( $list ),
278 - implode(
279 - $list,
280 - wfMsgHtml( 'userrights-list-separator' )
281 - )
282 - );
283 - }
284 - }
285 -
286 - return wfMsgExt(
287 - 'userrights-list',
288 - 'parse',
289 - $grouplists[0],
290 - $grouplists[1],
291 - $grouplists[2]
292 - );
293 -
294251 }
295252
296253 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Status & tagging log