X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgeneral.inc.php;h=8afe3f87d1945b2aca81603c3ffe0c23da95fa85;hb=6139d6cb7c65fddd3796f23e8e770f11993c8d36;hp=ac81f596ef10035f564813fa0a423eed97369087;hpb=5f30b30e8b2657ade5c727e98de286386ee002d8;p=platal.git diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index ac81f59..8afe3f8 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -1,6 +1,6 @@ matchWord($ini, $new, $newLen) || ($field == 'nom' && $new == 'DE ' . $old); if (!$success) { - global $page; - $page->trig("Le $field que tu as choisi ($value) est trop loin de ton $field initial ($init)" - . (($init == $current)? "" : " et de ton prénom précédent ($current)")); + Platal::page()->trigError("Le $field que tu as choisi ($value) est trop loin de ton $field initial ($init)" + . (($init == $current)? "" : " et de ton prénom précédent ($current)")); } return $success ? $value : $current; } @@ -128,7 +127,7 @@ class ProfileGeneral extends ProfilePage q.profile_mobile as mobile, q.profile_mobile_pub as mobile_pub, q.profile_web as web, q.profile_web_pub as web_pub, q.profile_freetext as freetext, q.profile_freetext_pub as freetext_pub, - q.profile_nick as nick, q.profile_from_ax as synchro_ax, u.matricule_ax, + q.profile_nick as nick, q.profile_from_ax as synchro_ax, u.hruid, IF(a1.aid IS NULL, -1, a1.aid) as appli_id1, a1.type as appli_type1, IF(a2.aid IS NULL, -1, a2.aid) as appli_id2, a2.type as appli_type2 FROM auth_user_md5 AS u @@ -197,7 +196,7 @@ class ProfileGeneral extends ProfilePage } } - public function _prepare(PlatalPage &$page, $id) + public function _prepare(PlPage &$page, $id) { require_once "applis.func.inc.php"; }