diff --git a/include/client/profile.inc.php b/include/client/profile.inc.php index 13062962e05b6a4f9a09c7be9a82ca10ccb6aa12..713551110b2acfdcb8f4cd26b0c65043e3fcf933 100644 --- a/include/client/profile.inc.php +++ b/include/client/profile.inc.php @@ -32,6 +32,7 @@ if ($acct = $thisclient->getAccount()) { <div class="error"><?php echo $errors['timezone']; ?></div> </td> </tr> +<?php if ($cfg->getSecondaryLanguages()) { ?> <tr> <td width="180"> <?php echo __('Preferred Language'); ?>: @@ -50,7 +51,8 @@ $selected = ($info['lang'] == $l['code']) ? 'selected="selected"' : ''; ?> <span class="error"> <?php echo $errors['lang']; ?></span> </td> </tr> -<?php if ($acct->isPasswdResetEnabled()) { ?> +<?php } + if ($acct->isPasswdResetEnabled()) { ?> <tr> <td colspan=2"> <div><hr><h3><?php echo __('Access Credentials'); ?></h3></div> diff --git a/include/staff/profile.inc.php b/include/staff/profile.inc.php index ea0317d614d65b7a016c218875de3dccfa57ef12..a8ba88a3ecce4a8a2aece8139c10ba1774c67104 100644 --- a/include/staff/profile.inc.php +++ b/include/staff/profile.inc.php @@ -92,6 +92,7 @@ $info['id']=$staff->getId(); <div class="error"><?php echo $errors['timezone']; ?></div> </td> </tr> +<?php if ($cfg->getSecondaryLanguages()) { ?> <tr> <td width="180"> <?php echo __('Preferred Language'); ?>: @@ -110,6 +111,7 @@ $info['id']=$staff->getId(); <span class="error"> <?php echo $errors['lang']; ?></span> </td> </tr> +<?php } ?> <tr><td width="220"><?php echo __('Preferred Locale');?>:</td> <td> <select name="locale">