Fixy some bugs

This commit is contained in:
Ice
2008-04-26 20:06:50 +00:00
parent 6f82648363
commit 5aa3fd6781
3 changed files with 3 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ class acp_portal
function main($id, $mode)
{
global $db, $user, $template;
global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx, $type;
global $config, $portal_config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
@@ -297,7 +297,7 @@ class acp_portal
$this->new_config[$key] = array('key' => $link_id, 'text' => $link_data['text'], 'url' => $link_data['url']);
}
$display_vars['vars']['portal_links_add'] = array('lang' => 'PORTAL_ADD_LINK_TEXT', 'type' => 'custom', 'method' => 'addLink', 'explain' => true);
$display_vars['vars']['portal_link_add'] = array('lang' => 'PORTAL_ADD_LINK_TEXT', 'type' => 'custom', 'method' => 'addLink', 'explain' => true);
break;
default:
trigger_error('NO_MODE', E_USER_ERROR);
@@ -343,7 +343,7 @@ class acp_portal
// We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to...
foreach ($display_vars['vars'] as $config_name => $null)
{
if (!isset($cfg_array[$config_name]) || strpos($config_name, 'legend') || ($type == 'links' && strpos($config_name, 'portal_link_') ) !== false)
if (!isset($cfg_array[$config_name]) || strpos($config_name, 'legend') || ($mode == 'links' && strpos($config_name, 'portal_link_') ) !== false)
{
continue;
}

View File

@@ -85,7 +85,6 @@ INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:"text";s:9:"Board3.de";s:3:"url";s:21:"http://www.board3.de/";}i:2;a:2:{s:4:"text";s:9:"phpBB.com";s:3:"url";s:21:"http://www.phpbb.com/";}}');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_add', '');
# POSTGRES COMMIT #

View File

@@ -27,7 +27,6 @@ $sql_update['0.2.3'] = array(
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_archive', '1')",
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_archive', '1')",
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_array', 'a:2:{i:1;a:2:{s:4:\"text\";s:9:\"Board3.de\";s:3:\"url\";s:21:\"http://www.board3.de/\";}i:2;a:2:{s:4:\"text\";s:9:\"phpBB.com\";s:3:\"url\";s:21:\"http://www.phpbb.com/\";}}')",
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links_add', '')",
);
?>