From 0fc826f17168e5d707999a70d6cf2515047dd762 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 25 Mar 2020 05:29:39 -0700 Subject: [PATCH] Improved body ID when Admin-UI is in use. --- e107_admin/header.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_admin/header.php b/e107_admin/header.php index 3982752a1..da5730237 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -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); } //