1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Improved body ID when Admin-UI is in use.

This commit is contained in:
Cameron 2020-03-25 05:29:39 -07:00
parent a2faa04fdf
commit 0fc826f171

View File

@ -451,7 +451,10 @@ if(deftrue('e_MENUMANAGER_ACTIVE'))
}
else
{
$body_onload .= " id=\"admin-".str_replace(".php","",e_PAGE)."\" ";
$bodyID = deftrue("e_CURRENT_PLUGIN") ? e_CURRENT_PLUGIN : str_replace(".php","",e_PAGE);
$bodyID .= (!empty($_GET['mode']) && !empty($_GET['action'])) ? "-".$_GET['mode'].'-'.$_GET['action'] : '';
$body_onload .= " id=\"admin-".e107::getForm()->name2id($bodyID)."\" ";
unset($bodyID);
}
//