Fix some really old, out-of-date POD in International.pm

Rework Operation/Profile to use an existing i18n object to fetch language hash.
This commit is contained in:
Colin Kuskie 2006-06-28 17:56:15 +00:00
parent adc20c335a
commit dc584ec66d
2 changed files with 8 additions and 1 deletions

View file

@ -151,7 +151,7 @@ sub validateProfileData {
$warning .= '<li>'.$i18n->get(1072).'</li>';
}
if ($field->getId eq "language") {
unless (exists WebGUI::International->new($session)->getLanguages($session)->{$fieldValue}) {
unless (exists $i18n->getLanguages()->{$fieldValue}) {
$error .= '<li>'.$field->getLabel.' '.$i18n->get(451).'</li>';
}
}