Fix: Do not loose value dol_use_jmobile when using not connected pages
(support and forget password)
This commit is contained in:
parent
58277b0fff
commit
77050340df
@ -189,10 +189,16 @@ if (! empty($hookmanager->resArray['options'])) {
|
|||||||
<?php
|
<?php
|
||||||
if ($forgetpasslink || $helpcenterlink)
|
if ($forgetpasslink || $helpcenterlink)
|
||||||
{
|
{
|
||||||
|
$moreparam='';
|
||||||
|
if ($dol_hide_topmenu) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_hide_topmenu='.$dol_hide_topmenu;
|
||||||
|
if ($dol_hide_leftmenu) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_hide_leftmenu='.$dol_hide_leftmenu;
|
||||||
|
if ($dol_no_mouse_hover) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_no_mouse_hover='.$dol_no_mouse_hover;
|
||||||
|
if ($dol_use_jmobile) $moreparam.=(strpos($moreparam,'?')===false?'?':'&').'dol_use_jmobile='.$dol_use_jmobile;
|
||||||
|
|
||||||
echo '<br>';
|
echo '<br>';
|
||||||
echo '<div align="center" style="margin-top: 4px;">';
|
echo '<div align="center" style="margin-top: 4px;">';
|
||||||
if ($forgetpasslink) {
|
if ($forgetpasslink) {
|
||||||
echo '<a style="color: #888888; font-size: 10px" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php">(';
|
echo '<a style="color: #888888; font-size: 10px" href="'.DOL_URL_ROOT.'/user/passwordforgotten.php'.$moreparam.'">(';
|
||||||
echo $langs->trans('PasswordForgotten');
|
echo $langs->trans('PasswordForgotten');
|
||||||
if (! $helpcenterlink) {
|
if (! $helpcenterlink) {
|
||||||
echo ')';
|
echo ')';
|
||||||
@ -201,7 +207,7 @@ if ($forgetpasslink || $helpcenterlink)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($helpcenterlink) {
|
if ($helpcenterlink) {
|
||||||
$url=DOL_URL_ROOT.'/support/index.php';
|
$url=DOL_URL_ROOT.'/support/index.php'.$moreparam;
|
||||||
if (! empty($conf->global->MAIN_HELPCENTER_LINKTOUSE)) $url=$conf->global->MAIN_HELPCENTER_LINKTOUSE;
|
if (! empty($conf->global->MAIN_HELPCENTER_LINKTOUSE)) $url=$conf->global->MAIN_HELPCENTER_LINKTOUSE;
|
||||||
echo '<a style="color: #888888; font-size: 10px" href="'.dol_escape_htmltag($url).'" target="_blank">';
|
echo '<a style="color: #888888; font-size: 10px" href="'.dol_escape_htmltag($url).'" target="_blank">';
|
||||||
if ($forgetpasslink) {
|
if ($forgetpasslink) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user