r34395 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34394‎ | r34395 | r34396 >
Date:19:34, 7 May 2008
Author:rotem
Status:old
Tags:
Comment:
Format the group rights list as a list.
Modified paths:
  • /trunk/phase3/includes/SpecialListgrouprights.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialListgrouprights.php
@@ -100,8 +100,10 @@
101101 }
102102 }
103103 sort( $r );
104 - $r = implode( wfMsg( 'comma-separator' ), $r );
105 -
106 - return $r;
 104+ if( empty( $r ) ) {
 105+ return '';
 106+ } else {
 107+ return '<ul><li>' . implode( "</li>\n<li>", $r ) . '</li></ul>';
 108+ }
107109 }
108110 }

Status & tagging log