Index: trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php |
— | — | @@ -153,7 +153,7 @@ |
154 | 154 | <td width="695"> |
155 | 155 | <select name="gift_category">' . "\n"; |
156 | 156 | $g = new SystemGifts(); |
157 | | - foreach ( $g->categories as $category => $id ) { |
| 157 | + foreach ( $g->getCategories() as $category => $id ) { |
158 | 158 | $sel = ''; |
159 | 159 | if ( isset( $gift['gift_category'] ) && $gift['gift_category'] == $id ) { |
160 | 160 | $sel = ' selected="selected"'; |
Index: trunk/extensions/SocialProfile/SystemGifts/SystemGiftsClass.php |
— | — | @@ -26,6 +26,14 @@ |
27 | 27 | ); |
28 | 28 | |
29 | 29 | /** |
| 30 | + * Accessor for the private $categories variable; used by |
| 31 | + * SpecialSystemGiftManager.php at least. |
| 32 | + */ |
| 33 | + public function getCategories() { |
| 34 | + return $this->categories; |
| 35 | + } |
| 36 | + |
| 37 | + /** |
30 | 38 | * Adds awards for all registered users, updates statistics and purges |
31 | 39 | * caches. |
32 | 40 | * Special:PopulateAwards calls this function |