X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=42c93edc823f7188082949596c4a5b1180e7e79a;hb=77c0c791c0521e234f3b9c95532e2d5f0dd49ce4;hp=1832e35bf6b7fe96dbae26b3c93453659a22001d;hpb=33317cc3b6fd35bc36fb3d5f4ed2d191a53e8029;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index 1832e35..42c93ed 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -1,6 +1,6 @@ hasProfile()) { return PL_NOT_FOUND; } else { - $profile = $user->profile(); + $profile = $user->profile(false,0,Visibility::get(Visibility::VIEW_ADMIN)); } } else { - $profile = Profile::get($hrpid); + $profile = Profile::get($hrpid,0,Visibility::get(Visibility::VIEW_ADMIN)); } if (!$profile) { @@ -294,7 +294,7 @@ class ProfileModule extends PLModule if (!$user->ax_id) { $page->kill("Le matricule AX de {$user->hrid()} est inconnu"); } - http_redirect("http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&ancc_id=" . $user->ax_id); + http_redirect("http://kx.polytechniciens.com/?page=AX_FICHE_ANCIEN&ancc_id=" . $user->ax_id); } function handler_p_edit($page, $hrpid = null, $opened_tab = null, $mode = null, $success = null) @@ -869,5 +869,5 @@ class ProfileModule extends PLModule } } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>