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

Revision: 90831
Author:   ashley
Date:     2011-06-26 14:22:04 +0000 (Sun, 26 Jun 2011)
Log Message:
-----------
SocialProfile: follow-up to r90560: forgot to stylize this

Modified Paths:
--------------
    trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php

Modified: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php
===================================================================
--- trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php      
2011-06-26 14:10:05 UTC (rev 90830)
+++ trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php      
2011-06-26 14:22:04 UTC (rev 90831)
@@ -506,7 +506,7 @@
                }
                $profile_data = $this->profile_data;
 
-               // Variables and other crap                
+               // Variables and other crap
                $page_title = $wgTitle->getText();
                $title_parts = explode( '/', $page_title );
                $user = $title_parts[0];
@@ -1494,24 +1494,26 @@
 
                return $output;
        }
-       
-       function getStatus($user_id){
-        global $wgUser;
-            
-        $us_class = new UserStatusClass($user_id);
-        $user_status_array = $us_class->getStatus($user_id);
-        if (empty($user_status_array))
-            $buf = '' ;
-        else
-            $buf=$user_status_array['us_status'];
 
-        // Only owners of the page can change statuses
-        if ( $wgUser->getId() == $user_id || $user_id == 0 )
-            $us ="<script>toShowMode('$buf','$user_id');</script>";
-        else 
-            $us = $buf;
+       function getStatus( $userId ) {
+               global $wgUser;
 
-        return $us;
-    }
+               $us_class = new UserStatusClass( $userId );
+               $user_status_array = $us_class->getStatus( $userId );
+               if ( empty( $user_status_array ) ) {
+                       $buf = '';
+               } else {
+                       $buf = $user_status_array['us_status'];
+               }
 
+               // Only owners of the page can change statuses
+               if ( $wgUser->getId() == $userId || $userId == 0 ) {
+                       $us = "<script>toShowMode('$buf','$userId');</script>";
+               } else {
+                       $us = $buf;
+               }
+
+               return $us;
+       }
+
 }


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

Reply via email to