Added permission-settings to the rest of the modules that use a custom acp template;

Updated missing or incorrect language variables; 
Outcommented a few language variables in info_acp_portal.php that should be deleted in the future;
This commit is contained in:
Marc Alexander
2010-11-20 17:08:09 +00:00
parent 28d6ed74b9
commit db7004416c
8 changed files with 45 additions and 19 deletions

View File

@@ -265,7 +265,7 @@ class portal_main_menu_module
$link_type = (!$link_is_cat) ? request_var('link_type', 0) : B3_LINKS_CAT;
$link_url = ($link_is_cat) ? ' ' : request_var('link_url', ' ');
$link_url = str_replace('&', '&', $link_url);
$link_permission = request_var('permission-setting', array(0 => ''));
$link_permission = request_var('permission-setting-menu', array(0 => ''));
$groups_ary = array();
// get groups and check if the selected groups actually exist
@@ -431,7 +431,7 @@ class portal_main_menu_module
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('permission_setting', array(
$template->assign_block_vars('permission_setting_menu', array(
'SELECTED' => (in_array($row['group_id'], $groups_ary)) ? true : false,
'GROUP_NAME' => (isset($user->lang['G_' . $row['group_name']])) ? $user->lang['G_' . $row['group_name']] : $row['group_name'],
'GROUP_ID' => $row['group_id'],

View File

@@ -153,9 +153,6 @@ class portal_welcome_module
set_portal_config('board3_welcome_message_' . $module_id, $welcome_message);
set_config('board3_welcome_message_uid_' . $module_id, $uid);
set_config('board3_welcome_message_bitfield_' . $module_id, $bitfield);
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link(($module_id) ? append_sid("{$phpbb_admin_path}index.$phpEx", 'i=portal&mode=modules') : $u_action));
break;
case 'preview':