From 0b981fbe550eab4d50a79de0b585e3bced440611 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 1 Jul 2010 17:59:56 +0200 Subject: [PATCH] Fix name change / orange request MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- modules/profile/general.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.'); } -- 2.1.4