mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
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:
parent
e6c3b97999
commit
9c31a05b1c
5 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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'];
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue