https://www.mediawiki.org/wiki/Special:Code/MediaWiki/104105

Revision: 104105
Author:   ashley
Date:     2011-11-23 23:39:12 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
SocialProfile: partial revert of r102176, r102180 and r102288 -- UserProfile's 
UserProfilePage.php accesses these properties, so they can't be private

Modified Paths:
--------------
    trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php
    trunk/extensions/SocialProfile/UserGifts/UserGiftsClass.php
    trunk/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php

Modified: trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php
===================================================================
--- trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php 
2011-11-23 23:37:27 UTC (rev 104104)
+++ trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php 
2011-11-23 23:39:12 UTC (rev 104105)
@@ -4,8 +4,8 @@
  */
 class UserSystemGifts {
 
-       private $user_id;               # Text form (spaces not underscores) of 
the main part
-       private $user_name;             # Text form (spaces not underscores) of 
the main part
+       public $user_id;                # Text form (spaces not underscores) of 
the main part
+       public $user_name;              # Text form (spaces not underscores) of 
the main part
 
        /**
         * Constructor

Modified: trunk/extensions/SocialProfile/UserGifts/UserGiftsClass.php
===================================================================
--- trunk/extensions/SocialProfile/UserGifts/UserGiftsClass.php 2011-11-23 
23:37:27 UTC (rev 104104)
+++ trunk/extensions/SocialProfile/UserGifts/UserGiftsClass.php 2011-11-23 
23:39:12 UTC (rev 104105)
@@ -5,8 +5,8 @@
  */
 class UserGifts {
 
-       private $user_id; # Text form (spaces not underscores) of the main part
-       private $user_name; # Text form (spaces not underscores) of the main 
part
+       public $user_id; # Text form (spaces not underscores) of the main part
+       public $user_name; # Text form (spaces not underscores) of the main part
 
        /**
         * Constructor

Modified: 
trunk/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php
===================================================================
--- trunk/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php   
2011-11-23 23:37:27 UTC (rev 104104)
+++ trunk/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php   
2011-11-23 23:39:12 UTC (rev 104105)
@@ -3,8 +3,8 @@
  * Functions for managing relationship data
  */
 class UserRelationship {
-       private $user_id;
-       private $user_name;
+       public $user_id;
+       public $user_name;
 
        /**
         * Constructor


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

Reply via email to