aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 9709b85752..e2fbc1db40 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -87,6 +87,13 @@ if (!$auth->acl_gets('f_list', 'f_read', $forum_id))
login_box('', $user->lang['LOGIN_VIEWFORUM']);
}
+// Forum is passworded ... check whether access has been granted to this
+// user this session, if not show login box
+if ($forum_data['forum_password'])
+{
+ login_forum_box($forum_data);
+}
+
// Is this forum a link? ... User got here either because the
// number of clicks is being tracked or they guessed the id
if ($forum_data['forum_type'] == FORUM_LINK && $forum_data['forum_link'])
@@ -103,13 +110,6 @@ if ($forum_data['forum_type'] == FORUM_LINK && $forum_data['forum_link'])
redirect($forum_data['forum_link']);
}
-// Forum is passworded ... check whether access has been granted to this
-// user this session, if not show login box
-if ($forum_data['forum_password'])
-{
- login_forum_box($forum_data);
-}
-
// Build navigation links
generate_forum_nav($forum_data);