update addresses

This commit is contained in:
bettina 2001-06-22 07:37:59 +00:00
parent 0cb21b95f7
commit 667eb328ee

View File

@ -304,11 +304,13 @@
$country = $phpgw_info['user']['preferences']['common']['country'];
}
if ($country == 'DE')
// echo PHPGW_SERVER_ROOT . SEP . 'addressbook' . SEP . 'templates' . SEP . 'default' . SEP . 'format_' . strtolower($country) . '.tpl';
if (file_exists(PHPGW_SERVER_ROOT . SEP . 'addressbook' . SEP . 'templates' . SEP .'default' . SEP . 'format_' . strtolower($country) . '.tpl'))
{
$a = $t->set_file(array('address_format' => 'format_de.tpl'));
$a = $t->set_file(array('address_format' => 'format_' . strtolower($country) . '.tpl'));
}
elseif ($country == 'US')
else
{
$a = $t->set_file(array('address_format' => 'format_us.tpl'));
}