diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-23 14:04:41 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-06-23 14:04:41 +0000 |
commit | 9c31a05b1c1fba2b1704996f0ed33cb451f13aa7 (patch) | |
tree | d4064634f1f7c3bc0b79cbdb0d82d899151302ef | |
parent | e6c3b97999cd7c68a3b0ea09c35174512cd7aebe (diff) | |
download | forums-9c31a05b1c1fba2b1704996f0ed33cb451f13aa7.tar forums-9c31a05b1c1fba2b1704996f0ed33cb451f13aa7.tar.gz forums-9c31a05b1c1fba2b1704996f0ed33cb451f13aa7.tar.bz2 forums-9c31a05b1c1fba2b1704996f0ed33cb451f13aa7.tar.xz forums-9c31a05b1c1fba2b1704996f0ed33cb451f13aa7.zip |
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
-rw-r--r-- | phpBB/includes/functions.php | 2 | ||||
-rw-r--r-- | phpBB/includes/functions_user.php | 2 | ||||
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 4 | ||||
-rwxr-xr-x | phpBB/includes/search/search.php | 2 | ||||
-rw-r--r-- | 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: |