From: Florent Bruneau Date: Mon, 31 Mar 2008 14:08:47 +0000 (+0200) Subject: Fix notice on 'ax'-profile. X-Git-Tag: xorg/0.9.16~40 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=inline;h=24f4c06a1bfdc57d45e4dae8ce5085a9f62b76e1;p=platal.git Fix notice on 'ax'-profile. Signed-off-by: Florent Bruneau --- diff --git a/modules/profile.php b/modules/profile.php index 2abfefb..bde1cf2 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -257,6 +257,7 @@ class ProfileModule extends PLModule $user['forlife'].'@'.$globals->mail->domain, $user['forlife'].'@'.$globals->mail->domain2); $page->assign('virtualalias', $res->fetchOneCell()); + $page->assign('view', $view); $page->addJsLink('close_on_esc.js'); header('Last-Modified: ' . date('r', strtotime($user['date']))); diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 24b7972..d4572fb 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -187,13 +187,19 @@ function chgMainWinLoc(strPage) {$x.cv|miniwiki:title|smarty:nodefaults} {/if} - {if !$logged} + {if $view eq 'public'}
Cette fiche est publique et visible par tout internaute,
vous pouvez aussi voir celle réservée aux X.
+ {elseif $view eq 'ax'} +
+ + Cette fiche est privée et ne recense que les informations transmises à l'AX. + +
{/if}