2015-10-17, 06:36 PM
I look in to mybb admin cp modules file and I thing that i no need to dubble add $sub_tabs
eg on calendar.php
and in next if
we have tooo
for what? that is unnecessary
eg on calendar.php
if($mybb->input['action'] == "add" || $mybb->input['action'] == "permissions" || !$mybb->input['action'])
{
$sub_tabs['manage_calendars'] = array(
'title' => $lang->manage_calendars,
'link' => "index.php?module=config-calendars",
'description' => $lang->manage_calendars_desc
);
$sub_tabs['add_calendar'] = array(
'title' => $lang->add_calendar,
'link' => "index.php?module=config-calendars&action=add",
);
}
and in next if
if($mybb->input['action'] == "add")
we have tooo
$sub_tabs['add_calendar'] = array(
'title' => $lang->add_calendar,
'link' => "index.php?module=config-calendars&action=add",
'description' => $lang->add_calendar_desc
);
for what? that is unnecessary