mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
No need to require guests to login before asking for password
git-svn-id: file:///svn/phpbb/trunk@3975 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1652fa243f
commit
aed79aea29
1 changed files with 1 additions and 6 deletions
|
@ -128,7 +128,7 @@ function generate_forum_nav(&$forum_data)
|
|||
$template->assign_vars(array(
|
||||
'FORUM_ID' => $forum_data['forum_id'],
|
||||
'FORUM_NAME' => $forum_data['forum_name'],
|
||||
'FORUM_DESC' => $forum_data['forum_desc'])
|
||||
'FORUM_DESC' => strip_tags($forum_data['forum_desc']))
|
||||
);
|
||||
|
||||
return;
|
||||
|
@ -966,11 +966,6 @@ function login_forum_box(&$forum_data)
|
|||
{
|
||||
global $db, $config, $user, $template, $phpEx;
|
||||
|
||||
if ($user->data['user_id'] == ANONYMOUS)
|
||||
{
|
||||
login_box(preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI'])), '', $user->lang['LOGIN_VIEWFORUM']);
|
||||
}
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM phpbb_forum_access
|
||||
WHERE forum_id = ' . $forum_data['forum_id'] . '
|
||||
|
|
Loading…
Add table
Reference in a new issue