Update fix

This commit is contained in:
Ice
2008-09-11 12:38:07 +00:00
parent 6c14c49567
commit b9cfdf23c9
2 changed files with 7 additions and 1 deletions

View File

@@ -880,6 +880,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)
{
$sql = preg_replace('#phpbb_#i', $table_prefix, $sql);

View File

@@ -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');",
);