Added feature that redirects a user to the custom block settings page after creating a custom block
This commit is contained in:
@@ -438,10 +438,17 @@ class acp_portal
|
||||
$sql = 'INSERT INTO ' . PORTAL_MODULES_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
||||
$db->sql_query($sql);
|
||||
|
||||
$c_class->install($db->sql_nextid());
|
||||
$module_id = $db->sql_nextid();
|
||||
|
||||
$c_class->install($module_id);
|
||||
|
||||
$cache->purge(); // make sure we don't get errors after re-adding a module
|
||||
|
||||
if($module_classname == 'custom')
|
||||
{
|
||||
meta_refresh(3, append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=config&module_id=' . $module_id));
|
||||
}
|
||||
|
||||
trigger_error($user->lang['SUCCESS_ADD'] . adm_back_link($this->u_action));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user