From: Raphaël Barrois Date: Thu, 1 Jul 2010 15:59:56 +0000 (+0200) Subject: Fix name change / orange request X-Git-Tag: xorg/1.0.1~15^2~78 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0b981fbe550eab4d50a79de0b585e3bced440611;p=platal.git Fix name change / orange request Signed-off-by: Raphaël Barrois --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index db75a30..a9afd28 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -218,7 +218,7 @@ class ProfileSettingSearchNames implements ProfileSetting // Only requires validation if modification in public names if ($has_new) { - $new_names = new NamesReq(S::user(), $this->profile, $this->search_names, $this->private_name_end); + $new_names = new NamesReq(S::user(), $page->profile, $this->search_names, $this->private_name_end); $new_names->submit(); Platal::page()->trigWarning('La demande de modification de tes noms a bien été prise en compte.' . ' Tu recevras un email dès que ces changements auront été effectués.'); @@ -416,7 +416,7 @@ class ProfileSettingPromo implements ProfileSetting } else { require_once 'validations.inc.php'; - $myorange = new OrangeReq(S::user(), $this->profile, $gradYearNew); + $myorange = new OrangeReq(S::user(), $page->profile, $gradYearNew); $myorange->submit(); Platal::page()->trigSuccess('Tu pourras changer l\'affichage de ta promotion dès que ta nouvelle promotion aura été validée.'); }