X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile.php;h=298d49cfb10b1eb608e4357c528f53428865c854;hb=8a43972f58f0a77015ae9e509f1c073d188874d2;hp=1ff0dd78fcec7e23494d7b4f2f04df822cba5db7;hpb=aef0283bdf24c94d640a16ccac08191980ae7a25;p=platal.git diff --git a/modules/profile.php b/modules/profile.php index 1ff0dd7..298d49c 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -72,7 +72,6 @@ class ProfileModule extends PLModule 'admin/corps_enum' => $this->make_hook('admin_corps_enum', AUTH_MDP, 'admin'), 'admin/corps_rank' => $this->make_hook('admin_corps_rank', AUTH_MDP, 'admin'), 'admin/names' => $this->make_hook('admin_names', AUTH_MDP, 'admin'), - ); } @@ -351,7 +350,7 @@ class ProfileModule extends PLModule http_redirect("http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&anc_id=$mat"); } - function handler_p_edit(&$page, $opened_tab = null, $mode = null) + function handler_p_edit(&$page, $opened_tab = null, $mode = null, $success = null) { global $globals; @@ -392,6 +391,9 @@ class ProfileModule extends PLModule } $page->setTitle('Mon Profil'); + if (isset($success) && $success) { + $page->trigSuccess('Ton profil a bien été mis à jour.'); + } } function handler_education_js(&$page)