Update index.php

This commit is contained in:
Laurent Destailleur 2021-02-11 18:31:25 +01:00 committed by GitHub
parent 5d4c00edb4
commit 7f89fea804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1711,8 +1711,8 @@ if (is_array($listofmodules) && count($listofmodules) > 0) {
$urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1);
$linktoenabledisable .= ' &nbsp; <a href="'.$urltouse.(preg_match('/\?/', $urltouse) ? '&' : '?').'save_lastsearch_values=1&backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').'</a>';
} else {
//Case standard admin page
$urltouse = dol_buildpath(DOL_URL_ROOT.'/admin/'.$urlpage, 1);
// Case standard admin page (not a page provided by the module but a page
$urltouse = DOL_URL_ROOT.'/admin/'.$urlpage;
$linktoenabledisable .= ' &nbsp; <a href="'.$urltouse.(preg_match('/\?/', $urltouse) ? '&' : '?').'save_lastsearch_values=1&backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').'</a>';
}
}