Add extra newline between permissions (nicer formatting)
authorSam Reed <reedy@users.mediawiki.org>
Sun, 16 May 2010 20:00:25 +0000 (20:00 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 16 May 2010 20:00:25 +0000 (20:00 +0000)
includes/api/ApiMain.php

index 43f4fc0..49cee0a 100644 (file)
@@ -726,7 +726,7 @@ class ApiMain extends ApiBase {
                foreach ( self::$mRights as $right => $rightMsg ) {
                        $groups = User::getGroupsWithPermission( $right );
                        $msg .= "* " . $right . " *\n  " . wfMsgReplaceArgs( $rightMsg[ 'msg' ], $rightMsg[ 'params' ] ) .
-                                               "\nGranted to:\n  " . str_replace( '*', 'all', implode( ', ', $groups ) ) . "\n";
+                                               "\nGranted to:\n  " . str_replace( '*', 'all', implode( ', ', $groups ) ) . "\n\n";
 
                }