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:
parent
adc20c335a
commit
dc584ec66d
2 changed files with 8 additions and 1 deletions
|
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue