Update fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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');",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user