Zeile 26 | Zeile 26 |
---|
$sub_tabs['add_calendar'] = array( 'title' => $lang->add_calendar, 'link' => "index.php?module=config-calendars&action=add",
|
$sub_tabs['add_calendar'] = array( 'title' => $lang->add_calendar, 'link' => "index.php?module=config-calendars&action=add",
|
| 'description' => $lang->add_calendar_desc
|
); }
| ); }
|
Zeile 42 | Zeile 43 |
---|
if(!trim($mybb->input['name'])) { $errors[] = $lang->error_missing_name;
|
if(!trim($mybb->input['name'])) { $errors[] = $lang->error_missing_name;
|
}
| }
|
if(!isset($mybb->input['disporder'])) {
| if(!isset($mybb->input['disporder'])) {
|
Zeile 68 | Zeile 69 |
---|
$plugins->run_hooks("admin_config_calendars_add_commit_start");
$cid = $db->insert_query("calendars", $calendar);
|
$plugins->run_hooks("admin_config_calendars_add_commit_start");
$cid = $db->insert_query("calendars", $calendar);
|
|
|
$plugins->run_hooks("admin_config_calendars_add_commit_end");
// Log admin action
| $plugins->run_hooks("admin_config_calendars_add_commit_end");
// Log admin action
|
Zeile 91 | Zeile 92 |
---|
$page->add_breadcrumb_item($lang->add_calendar); $page->output_header($lang->calendars." - ".$lang->add_calendar);
|
$page->add_breadcrumb_item($lang->add_calendar); $page->output_header($lang->calendars." - ".$lang->add_calendar);
|
$sub_tabs['add_calendar'] = array( 'title' => $lang->add_calendar, 'link' => "index.php?module=config-calendars&action=add", 'description' => $lang->add_calendar_desc );
| |
$page->output_nav_tabs($sub_tabs, 'add_calendar'); $form = new Form("index.php?module=config-calendars&action=add", "post");
|
$page->output_nav_tabs($sub_tabs, 'add_calendar'); $form = new Form("index.php?module=config-calendars&action=add", "post");
|
| |
if($errors) {
| if($errors) {
|
Zeile 317 | Zeile 311 |
---|
$plugins->run_hooks("admin_config_calendars_edit_commit");
|
$plugins->run_hooks("admin_config_calendars_edit_commit");
|
$db->update_query("calendars", $updated_calendar, "cid = '".$mybb->get_input('cid', MyBB::INPUT_INT)."'");
| $db->update_query("calendars", $updated_calendar, "cid='{$calendar['cid']}'");
|
// Log admin action log_admin_action($calendar['cid'], $mybb->input['name']);
| // Log admin action log_admin_action($calendar['cid'], $mybb->input['name']);
|