X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgeneral.inc.php;h=8227f36bfa8d02c540dac54fa830ee0e0141ac36;hb=55546c0db778c2d8f9d7debd30117931dc39ff16;hp=ac81f596ef10035f564813fa0a423eed97369087;hpb=5f30b30e8b2657ade5c727e98de286386ee002d8;p=platal.git diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index ac81f59..8227f36 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -52,9 +52,8 @@ class ProfileNom implements ProfileSetting || $this->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; } @@ -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"; }