This commit is contained in:
holan20180123
2021-04-21 10:27:33 +08:00
parent b13b635102
commit 8f5359eba4
+3 -1
View File
@@ -395,7 +395,9 @@ class tree extends control
if($confirm == 'no')
{
$module = $this->tree->getByID($moduleID);
$confirmLang = $module->type == 'line' ? $this->lang->tree->confirmDeleteLine : $this->lang->tree->confirmDelete;
$confirmLang = $this->lang->tree->confirmDelete;
if($module->type == 'line') $confirmLang = $this->lang->tree->confirmDeleteLine;
if($module->type == 'host') $confirmLang = $this->lang->tree->confirmDeleteHost;
die(js::confirm($confirmLang, $this->createLink('tree', 'delete', "rootID=$rootID&moduleID=$moduleID&confirm=yes")));
}
else