From: Raphaël Barrois Date: Fri, 19 Mar 2010 23:12:15 +0000 (+0100) Subject: Simplify profile fetching X-Git-Tag: xorg/1.0.0~332^2~32 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=d1095b1dcc7f317b16159a5b53717c8b8f92d8f0;p=platal.git Simplify profile fetching Signed-off-by: Raphaël Barrois --- diff --git a/modules/profile.php b/modules/profile.php index 6c2dc9f..3999826 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -233,7 +233,7 @@ class ProfileModule extends PLModule // Fetches profile's and profile's owner information and redirects to // marketing if the owner has not subscribed and the requirer has logged in. - $profile = Profile::getBulkProfilesWithPIDs(array($pid), Profile::FETCH_ALL, $view); + $profile = Profile::get($pid, Profile::FETCH_ALL, $view); $owner = $profile->owner(); if (S::logged() && !is_null($owner) && $owner->state == 'pending') { pl_redirect('marketing/public/' . $profile->hrid());