From b9cfdf23c91a9a0bc796d39c49ae289fbda54c60 Mon Sep 17 00:00:00 2001 From: Ice Date: Thu, 11 Sep 2008 12:38:07 +0000 Subject: [PATCH] Update fix --- root/install_portal/install.php | 6 ++++++ root/install_portal/schemas/update_schema.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/root/install_portal/install.php b/root/install_portal/install.php index 123de970..85661250 100644 --- a/root/install_portal/install.php +++ b/root/install_portal/install.php @@ -879,6 +879,12 @@ if( $user->data['is_registered'] && $auth->acl_get('a_board') ) } $portal_update_array[] = 'UPDATE ' . PORTAL_CONFIG_TABLE . " SET config_value='{$current_version}' WHERE config_name = 'portal_version'"; + + if( $old_version == '1.0.0' ) + { + $portal_update_array[] = 'INSERT ' . PORTAL_CONFIG_TABLE . " (config_name, config_value) VALUES ('portal_show_announcements_replies_views', '1');", + $portal_update_array[] = 'INSERT ' . PORTAL_CONFIG_TABLE . " (config_name, config_value) VALUES ('portal_show_news_replies_views', '1');", + } foreach($portal_update_array as $sql) { diff --git a/root/install_portal/schemas/update_schema.php b/root/install_portal/schemas/update_schema.php index ae22ee8a..0d1c7826 100644 --- a/root/install_portal/schemas/update_schema.php +++ b/root/install_portal/schemas/update_schema.php @@ -68,7 +68,7 @@ $sql_update['1.0.0RC2'] = array( "INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders_ext', '0');", ); -$sql_update['1.0.0'] = array( +$sql_update['1.0.0RC3'] = array( "INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_announcements_replies_views', '1');", "INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_news_replies_views', '1');", );