From 9c31a05b1c1fba2b1704996f0ed33cb451f13aa7 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 23 Jun 2006 14:04:41 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions.php | 2 +- phpBB/includes/functions_user.php | 2 +- phpBB/includes/mcp/mcp_main.php | 4 ++-- phpBB/includes/search/search.php | 2 +- phpBB/includes/session.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1c631469cb..92410f2c1c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -145,7 +145,7 @@ function unique_id($extra = 'c') if ($dss_seeded !== true) { - set_config('rand_seed', $config['rand_seed']); + set_config('rand_seed', $config['rand_seed'], true); $dss_seeded = true; } diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 1b4dc37cd2..736e626793 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -116,7 +116,7 @@ function user_update_name($old_name, $new_name) if ($config['newest_username'] == $old_name) { - set_config('newest_username', $new_name); + set_config('newest_username', $new_name, true); } } diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index abae0d55d4..b81845a2aa 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -898,8 +898,8 @@ function mcp_fork_topic($topic_ids) // Sync new topics, parent forums and board stats sync('topic', 'topic_id', $new_topic_id_list, true); sync('forum', 'forum_id', $to_forum_id, true); - set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list)); - set_config('num_posts', $config['num_posts'] + $total_posts); + set_config('num_topics', $config['num_topics'] + sizeof($new_topic_id_list), true); + set_config('num_posts', $config['num_posts'] + $total_posts, true); foreach ($new_topic_id_list as $topic_id => $new_topic_id) { diff --git a/phpBB/includes/search/search.php b/phpBB/includes/search/search.php index 6fcacac483..4f7abd50dc 100755 --- a/phpBB/includes/search/search.php +++ b/phpBB/includes/search/search.php @@ -196,7 +196,7 @@ class search_backend } $db->sql_freeresult($result); } - //set_config('last_search_time', time()); + $sql = 'UPDATE ' . USERS_TABLE . ' SET user_last_search = ' . time() . ' WHERE user_id = ' . $user->data['user_id']; diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index e1db457b99..184d701959 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -657,7 +657,7 @@ class session WHERE session_time < ' . (int) ($this->time_now - $config['session_length']); $db->sql_query($sql); - set_config('session_last_gc', $this->time_now); + set_config('session_last_gc', $this->time_now, true); break; default: