Fix: to large a href

This commit is contained in:
Laurent Destailleur 2013-05-17 01:30:39 +02:00
parent b8cd276128
commit fdd8d2cc5e

View File

@ -136,22 +136,19 @@ if ($forgetpasslink || $helpcenterlink)
if ($forgetpasslink) {
echo '<a class="alogin" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam.'">(';
echo $langs->trans('PasswordForgotten');
if (! $helpcenterlink) {
echo ')';
}
if (! $helpcenterlink) echo ')';
echo '</a>';
}
if ($forgetpasslink && $helpcenterlink) echo '&nbsp;-&nbsp;';
if ($helpcenterlink) {
$url=DOL_URL_ROOT.'/support/index.php'.$moreparam;
if (! empty($conf->global->MAIN_HELPCENTER_LINKTOUSE)) $url=$conf->global->MAIN_HELPCENTER_LINKTOUSE;
echo '<a class="alogin" href="'.dol_escape_htmltag($url).'" target="_blank">';
if ($forgetpasslink) {
echo '&nbsp;-&nbsp;';
} else {
echo '(';
}
echo $langs->trans('NeedHelpCenter').')</a>';
if (! $forgetpasslink) echo '(';
echo $langs->trans('NeedHelpCenter');
echo ')</a>';
}
echo '</div>';
}