mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-30 03:30:17 +02:00
Merge remote-tracking branch 'MGaetan89/ticket/11144' into develop-olympus
* MGaetan89/ticket/11144: [ticket/11144] Add missing {FORUM_NAME} variable [ticket/11144] Add missing {FORUM_NAME} variable
This commit is contained in:
@@ -3272,6 +3272,7 @@ function login_forum_box($forum_data)
|
||||
page_header($user->lang['LOGIN'], false);
|
||||
|
||||
$template->assign_vars(array(
|
||||
'FORUM_NAME' => isset($forum_data['forum_name']) ? $forum_data['forum_name'] : '',
|
||||
'S_LOGIN_ACTION' => build_url(array('f')),
|
||||
'S_HIDDEN_FIELDS' => build_hidden_fields(array('f' => $forum_data['forum_id'])))
|
||||
);
|
||||
|
@@ -271,19 +271,16 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
// Passworded forum?
|
||||
if ($post['forum_id'])
|
||||
{
|
||||
$sql = 'SELECT forum_password
|
||||
$sql = 'SELECT forum_id, forum_name, forum_password
|
||||
FROM ' . FORUMS_TABLE . '
|
||||
WHERE forum_id = ' . (int) $post['forum_id'];
|
||||
$result = $db->sql_query($sql);
|
||||
$forum_password = (string) $db->sql_fetchfield('forum_password');
|
||||
$forum_data = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
if ($forum_password)
|
||||
if (!empty($forum_data['forum_password']))
|
||||
{
|
||||
login_forum_box(array(
|
||||
'forum_id' => $post['forum_id'],
|
||||
'forum_password' => $forum_password,
|
||||
));
|
||||
login_forum_box($forum_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user