Got rid of a few unneeded language variables;

Fixed incorrect displaying of which module has been edited;
This commit is contained in:
Marc Alexander
2010-11-26 15:12:06 +00:00
parent 934a1053b2
commit 2321270622
3 changed files with 35 additions and 57 deletions

View File

@@ -106,6 +106,7 @@ class acp_portal
{
$user->add_lang('mods/portal/' . $c_class->language);
}
$module_name = $user->lang[$c_class->name];
$display_vars = $c_class->get_template_acp($module_id);
$template->assign_vars(array(
'MODULE_NAME' => $module_data['module_name'],
@@ -220,7 +221,14 @@ class acp_portal
$db->sql_query($sql);
$cache->destroy('sql', CONFIG_TABLE);
add_log('admin', 'LOG_PORTAL_CONFIG', $user->lang['ACP_PORTAL_' . strtoupper($mode) . '_INFO']);
if(isset($module_name))
{
add_log('admin', 'LOG_PORTAL_CONFIG',$module_name);
}
else
{
add_log('admin', 'LOG_PORTAL_CONFIG', $user->lang['ACP_PORTAL_' . strtoupper($mode) . '_INFO']);
}
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link(($module_id) ? append_sid("{$phpbb_root_path}adm/index.$phpEx", 'i=portal&mode=modules') : $this->u_action));
}

View File

@@ -21,7 +21,7 @@ class acp_portal_info
return array(
'filename' => 'acp_portal',
'title' => 'ACP_PORTAL',
'version' => '1.2.0',
'version' => '2.0.0',
'modes' => array(
'config' => array('title' => 'ACP_PORTAL_GENERAL_INFO', 'auth' => 'acl_a_portal', 'cat' => array('ACP_PORTAL')),
'modules' => array('title' => 'ACP_PORTAL_MODULES', 'auth' => 'acl_a_portal', 'cat' => array('ACP_PORTAL')),