http://www.mediawiki.org/wiki/Special:Code/MediaWiki/92613

Revision: 92613
Author:   ashley
Date:     2011-07-20 09:30:19 +0000 (Wed, 20 Jul 2011)
Log Message:
-----------
SocialProfile: make the resulting HTML a bit more readable in 
SpecialSystemGiftManager.php

Modified Paths:
--------------
    trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php

Modified: 
trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php
===================================================================
--- trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php     
2011-07-20 08:40:34 UTC (rev 92612)
+++ trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php     
2011-07-20 09:30:19 UTC (rev 92613)
@@ -148,16 +148,18 @@
                        <tr>
                                <td width="200" class="view-form">' . wfMsg( 
'ga-gifttype' ) . '</td>
                                <td width="695">
-                                       <select name="gift_category">';
+                                       <select name="gift_category">' . "\n";
                        $g = new SystemGifts();
                        foreach ( $g->categories as $category => $id ) {
                                $sel = '';
                                if ( isset( $gift['gift_category'] ) && 
$gift['gift_category'] == $id ) {
                                        $sel = ' selected="selected"';
                                }
-                               $form .= '<option' . $sel . " 
value=\"{$id}\">{$category}</option>";
+                               $indent = "\t\t\t\t\t\t";
+                               $form .= $indent . '<option' . $sel .
+                                       " 
value=\"{$id}\">{$category}</option>\n";
                        }
-                       $form .= '</select>
+                       $form .= "\t\t\t\t\t" . '</select>
                                </td>
                        </tr>
                <tr>


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to