X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fgeneral.inc.php;h=8227f36bfa8d02c540dac54fa830ee0e0141ac36;hb=2d8779e2808c8071eaea64420f553812e992bdce;hp=f1068380801959b128f1a8261f84505015b324d3;hpb=3f89a071adc7454d9945b767d35e679f5ea1a326;p=platal.git diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index f106838..8227f36 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; } @@ -117,6 +116,8 @@ class ProfileGeneral extends ProfilePage $this->settings['appli1'] = $this->settings['appli2'] = new ProfileAppli(); + $this->watched= array('nom' => true, 'freetext' => true, 'mobile' => true, 'web' => true, + 'appli1' => true, 'appli2' => true, 'nationalite' => true, 'nick' => true); } protected function _fetchData() @@ -195,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"; }