diff --git a/classes/Profile.php b/classes/Profile.php index ac008877c4..a47744a124 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -1304,4 +1304,15 @@ class Profile extends Memcached_DataObject return true; } + + static function current() + { + $user = common_current_user(); + if (empty($user)) { + $profile = null; + } else { + $profile = $user->getProfile(); + } + return $profile; + } }