fix php8 warnings
This commit is contained in:
parent
3414511d7f
commit
239dae03bf
@ -58,8 +58,8 @@ if (!isset($mode) || $mode != 'noajax') { // For ajax call
|
||||
if ($selecteddir != '/') {
|
||||
$selecteddir = preg_replace('/\/$/', '', $selecteddir); // We removed last '/' except if it is '/'
|
||||
}
|
||||
} else // For no ajax call
|
||||
{
|
||||
} else {
|
||||
// For no ajax call
|
||||
//if (GETPOST('preopened')) { $_GET['dir'] = $_POST['dir'] = GETPOST('preopened'); }
|
||||
|
||||
$openeddir = GETPOST('openeddir');
|
||||
@ -76,6 +76,9 @@ if (!isset($mode) || $mode != 'noajax') { // For ajax call
|
||||
}
|
||||
}
|
||||
|
||||
$websitekey = GETPOST('websitekey', 'alpha');
|
||||
$pageid = GETPOST('pageid', 'int');
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->load("ecm");
|
||||
|
||||
|
||||
@ -71,7 +71,8 @@ print '<div class="inline-block toolbarbutton centpercent">';
|
||||
|
||||
// Toolbar
|
||||
if ($permtoadd) {
|
||||
print '<a href="'.DOL_URL_ROOT.'/ecm/dir_add_card.php?action=create&module='.urlencode($module).($websitekey ? '&website='.$websitekey : '').($pageid ? '&pageid='.$pageid : '').'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?file_manager=1&website='.$websitekey.'&pageid='.$pageid).'" class="inline-block valignmiddle toolbarbutton paddingtop" title="'.dol_escape_htmltag($langs->trans('ECMAddSection')).'">';
|
||||
$websitekeyandpageid = (!empty($websitekey) ? '&website='.$websitekey : '').(!empty($pageid) ? '&pageid='.$pageid : '');
|
||||
print '<a href="'.DOL_URL_ROOT.'/ecm/dir_add_card.php?action=create&module='.urlencode($module).$websitekeyandpageid.'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?file_manager=1'.$websitekeyandpageid).'" class="inline-block valignmiddle toolbarbutton paddingtop" title="'.dol_escape_htmltag($langs->trans('ECMAddSection')).'">';
|
||||
print '<img class="toolbarbutton" border="0" src="'.DOL_URL_ROOT.'/theme/common/folder-new.png">';
|
||||
print '</a>';
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user