Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -607,9 +607,9 @@ |
608 | 608 | $output .= '</div> |
609 | 609 | <div class="action-left">'; |
610 | 610 | if( intval( str_replace( ",", "", $relationship_count ) ) > 4 ) { |
611 | | - $output .= "{$per_row} ".wfMsg('user-count-separator')." {$relationship_count}"; |
| 611 | + $output .= wfMsg( 'user-count-separator', $per_row, $relationship_count ); |
612 | 612 | } else { |
613 | | - $output .= "{$relationship_count} ".wfMsg('user-count-separator')." {$relationship_count}"; |
| 613 | + $output .= wfMsg( 'user-count-separator', $relationship_count, $relationship_count ); |
614 | 614 | } |
615 | 615 | $output .= '</div> |
616 | 616 | </div> |
— | — | @@ -687,9 +687,9 @@ |
688 | 688 | $output .= '</div> |
689 | 689 | <div class="action-left">'; |
690 | 690 | if( $gift_count > 4 ) { |
691 | | - $output .= "4 ".wfMsg('user-count-separator')." {$gift_count}"; |
| 691 | + $output .= wfMsg( 'user-count-separator', "4", $gift_count ); |
692 | 692 | } else { |
693 | | - $output .= "{$gift_count} ".wfMsg('user-count-separator')." {$gift_count}"; |
| 693 | + $output .= wfMsg( 'user-count-separator', $gift_count, $gift_count ); |
694 | 694 | } |
695 | 695 | $output .= '</div> |
696 | 696 | <div class="cleared"></div> |
— | — | @@ -770,9 +770,9 @@ |
771 | 771 | $output .= '</div> |
772 | 772 | <div class="action-left">'; |
773 | 773 | if( $system_gift_count > 4 ) { |
774 | | - $output .= "4 ".wfMsg('user-count-separator')." {$system_gift_count}"; |
| 774 | + $output .= wfMsg( 'user-count-separator', "4", $system_gift_count ); |
775 | 775 | } else { |
776 | | - $output .= "{$system_gift_count} ".wfMsg('user-count-separator')." {$system_gift_count}"; |
| 776 | + $output .= wfMsg( 'user-count-separator', $system_gift_count, $system_gift_count ); |
777 | 777 | } |
778 | 778 | $output .= "</div> |
779 | 779 | <div class=\"cleared\"></div> |
— | — | @@ -846,9 +846,9 @@ |
847 | 847 | $output .= '</div> |
848 | 848 | <div class="action-left">'; |
849 | 849 | if( $total > 10 ) { |
850 | | - $output .= "10 ".wfMsg('user-count-separator')." {$total}"; |
| 850 | + $output .= wfMsg( 'user-count-separator', "10", $total ); |
851 | 851 | } else if( $total > 0 ) { |
852 | | - $output .= "{$total} ".wfMsg('user-count-separator')." {$total}"; |
| 852 | + $output .= wfMsg( 'user-count-separator', $total, $total ); |
853 | 853 | } |
854 | 854 | $output .= '</div> |
855 | 855 | <div class="cleared"></div> |
— | — | @@ -939,9 +939,9 @@ |
940 | 940 | $output .= '</div> |
941 | 941 | <div class="action-left">'; |
942 | 942 | if( $fanbox_count > 10 ) { |
943 | | - $output .= "10 ".wfMsg('user-count-separator')." {$fanbox_count}"; |
| 943 | + $output .= wfMsg('user-count-separator', "10", $fanbox_count ); |
944 | 944 | } else { |
945 | | - $output .= "{$fanbox_count} ".wfMsg('user-count-separator')." {$fanbox_count}"; |
| 945 | + $output .= wfMsg( 'user-count-separator',$fanbox_count, $fanbox_count); |
946 | 946 | } |
947 | 947 | $output .= '</div> |
948 | 948 | <div class="cleared"></div> |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfile.i18n.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | 'populateuserprofiles' => 'Populate user profiles', |
18 | 18 | 'user-awards-title' => 'Awards', |
19 | 19 | 'user-gifts-title' => 'Gifts', |
20 | | - 'user-count-separator' => 'of', |
| 20 | + 'user-count-separator' => '$1 of $2', |
21 | 21 | 'user-view-all' => 'View all', |
22 | 22 | 'user-upload-image' => 'Upload image', |
23 | 23 | 'user-edit-this' => 'Edit this', |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php |
— | — | @@ -571,6 +571,7 @@ |
572 | 572 | |
573 | 573 | wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
574 | 574 | |
| 575 | + // FIXME: if the checkboxes are in front of the option, this will look more like Special:Preferences |
575 | 576 | $wgOut->setPageTitle( wfMsg('user-profile-section-preferences') ); |
576 | 577 | $form = UserProfile::getEditProfileNav( wfMsg( 'user-profile-section-preferences' ) ); |
577 | 578 | $form .= '<form action="" method="post" enctype="multipart/form-data" name=profile>'; |
Index: trunk/extensions/SocialProfile/UserGifts/GiftsClass.php |
— | — | @@ -26,6 +26,7 @@ |
27 | 27 | static function addGift( $gift_name, $gift_description, $gift_access = 0 ){ |
28 | 28 | global $wgUser; |
29 | 29 | |
| 30 | + // FIXME: undefined variable user_to |
30 | 31 | $user_id_to = User::idFromName($user_to); |
31 | 32 | $dbw = wfGetDB( DB_MASTER ); |
32 | 33 | |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiftManager.php |
— | — | @@ -122,7 +122,8 @@ |
123 | 123 | global $wgScriptPath; |
124 | 124 | wfLoadExtensionMessages('UserGifts'); |
125 | 125 | $output = ''; // Prevent E_NOTICE |
126 | | - $gifts = Gifts::getManagedGiftList($per_page, $page); |
| 126 | + // FIXME: undefined variables per_page and page |
| 127 | + $gifts = Gifts::getManagedGiftList( $per_page, $page ); |
127 | 128 | if( $gifts ){ |
128 | 129 | foreach( $gifts as $gift ) { |
129 | 130 | $output .= "<div class=\"Item\"> |
— | — | @@ -151,6 +152,7 @@ |
152 | 153 | |
153 | 154 | $form .= '<form action="" method="POST" enctype="multipart/form-data" name="gift">'; |
154 | 155 | $form .= '<table border="0" cellpadding="5" cellspacing="0" width="500">'; |
| 156 | + // FIXME: undefined variable gift (twice) |
155 | 157 | $form .= '<tr> |
156 | 158 | <td width="200" class="view-form">'.wfMsg('g-gift-name').'</td> |
157 | 159 | <td width="695"><input type="text" size="45" class="createbox" name="gift_name" value="'. $gift['gift_name'] . '"/></td> |
— | — | @@ -169,6 +171,7 @@ |
170 | 172 | if( !in_array('giftadmin', $wgUser->getGroups() ) ){ |
171 | 173 | $form .= '<input type="hidden" name="access" value="1">'; |
172 | 174 | } else { |
| 175 | + // FIXME: undefined variable gift (twice) |
173 | 176 | $form .= '<tr> |
174 | 177 | <td class="view-form">'.wfMsg('giftmanager-access').'</td> |
175 | 178 | <td> |
— | — | @@ -192,6 +195,7 @@ |
193 | 196 | </tr>'; |
194 | 197 | } |
195 | 198 | |
| 199 | + // FIXME: undefined variable gift (twice) |
196 | 200 | $form .= ' |
197 | 201 | <tr> |
198 | 202 | <td colspan="2"> |
Index: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php |
— | — | @@ -426,6 +426,7 @@ |
427 | 427 | if( $row ){ |
428 | 428 | // recaculate point total |
429 | 429 | $new_total_points = 1000; |
| 430 | + // FIXME: Invalid argument supplied for foreach() |
430 | 431 | foreach( $this->point_values as $point_field => $point_value ){ |
431 | 432 | if( $this->stats_fields[$point_field] ){ |
432 | 433 | $field = $this->stats_fields[$point_field]; |
— | — | @@ -459,6 +460,7 @@ |
460 | 461 | } |
461 | 462 | $this->clearCache(); |
462 | 463 | } |
| 464 | + // FIXME: Undefined variable: stats_data |
463 | 465 | return $stats_data; |
464 | 466 | } |
465 | 467 | } |