From: Florent Bruneau Date: Sat, 6 Mar 2010 22:20:16 +0000 (+0100) Subject: Remove calls to Profile::getNameTypeId. X-Git-Tag: xorg/1.0.0~332^2~88 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=07613cdddaa81cda21f16046bfa4540e251b2edf;p=platal.git Remove calls to Profile::getNameTypeId. Signed-off-by: Florent Bruneau --- diff --git a/classes/userfilter.php b/classes/userfilter.php index ff446a3..3e841da 100644 --- a/classes/userfilter.php +++ b/classes/userfilter.php @@ -1965,7 +1965,7 @@ class UserFilter extends PlFilter static public function assertName($name) { - if (!Profile::getNameTypeId($name)) { + if (!DirEnum::getID(DirEnum::NAMETYPES, $name)) { Platal::page()->kill('Invalid name type: ' . $name); } } @@ -1985,7 +1985,7 @@ class UserFilter extends PlFilter if (!is_null($variant) && $variant == 'other') { $sub .= $this->option++; } - $this->pn[$sub] = Profile::getNameTypeId($ft); + $this->pn[$sub] = DirEnum::getID(DirEnum::NAMETYPES, $ft); return $sub; }