make sure set_config is called with the correct is_dynamic value

git-svn-id: file:///svn/phpbb/trunk@6117 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-06-23 14:04:41 +00:00
parent e6c3b97999
commit 9c31a05b1c
5 changed files with 6 additions and 6 deletions

View file

@ -145,7 +145,7 @@ function unique_id($extra = 'c')
if ($dss_seeded !== true) if ($dss_seeded !== true)
{ {
set_config('rand_seed', $config['rand_seed']); set_config('rand_seed', $config['rand_seed'], true);
$dss_seeded = true; $dss_seeded = true;
} }

View file

@ -116,7 +116,7 @@ function user_update_name($old_name, $new_name)
if ($config['newest_username'] == $old_name) if ($config['newest_username'] == $old_name)
{ {
set_config('newest_username', $new_name); set_config('newest_username', $new_name, true);
} }
} }

View file

@ -898,8 +898,8 @@ function mcp_fork_topic($topic_ids)
// Sync new topics, parent forums and board stats // Sync new topics, parent forums and board stats
sync('topic', 'topic_id', $new_topic_id_list, true); sync('topic', 'topic_id', $new_topic_id_list, true);
sync('forum', 'forum_id', $to_forum_id, true); sync('forum', 'forum_id', $to_forum_id, true);
set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list)); set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list), true);
set_config('num_posts', $config['num_posts'] + $total_posts); set_config('num_posts', $config['num_posts'] + $total_posts, true);
foreach ($new_topic_id_list as $topic_id => $new_topic_id) foreach ($new_topic_id_list as $topic_id => $new_topic_id)
{ {

View file

@ -196,7 +196,7 @@ class search_backend
} }
$db->sql_freeresult($result); $db->sql_freeresult($result);
} }
//set_config('last_search_time', time());
$sql = 'UPDATE ' . USERS_TABLE . ' $sql = 'UPDATE ' . USERS_TABLE . '
SET user_last_search = ' . time() . ' SET user_last_search = ' . time() . '
WHERE user_id = ' . $user->data['user_id']; WHERE user_id = ' . $user->data['user_id'];

View file

@ -657,7 +657,7 @@ class session
WHERE session_time < ' . (int) ($this->time_now - $config['session_length']); WHERE session_time < ' . (int) ($this->time_now - $config['session_length']);
$db->sql_query($sql); $db->sql_query($sql);
set_config('session_last_gc', $this->time_now); set_config('session_last_gc', $this->time_now, true);
break; break;
default: default: