From 07613cdddaa81cda21f16046bfa4540e251b2edf Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 6 Mar 2010 23:20:16 +0100 Subject: [PATCH] Remove calls to Profile::getNameTypeId. Signed-off-by: Florent Bruneau --- classes/userfilter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.1.4