LOAD_TEMPLATE("admin_mods_edit");
} else {
// Nothing selected
- LOAD_TEMPLATE("admin_settings_saved", false, MODS_NOTHING_SELECTED);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MODS_NOTHING_SELECTED'));
// Remove maybe confusing data
unset($_POST['edit']);
$id = bigintval($id);
// Update module
- SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET title='%s', `locked`='%s', hidden='%s', admin_only='%s', mem_only='%s' WHERE id=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_mod_reg` SET `title`='%s', `locked`='%s', hidden='%s', admin_only='%s', mem_only='%s' WHERE id=%s LIMIT 1",
array($_POST['title'][$id], $_POST['locked'][$id], $_POST['hidden'][$id], $_POST['admin'][$id], $_POST['member'][$id], $id), __FILE__, __LINE__);
}
}
// Entries updated
- LOAD_TEMPLATE("admin_settings_saved", false, MODS_CHANGED);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MODS_CHANGED'));
}
if ($SEL == 0) {