aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-11-19 15:01:56 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-11-19 15:01:56 +0000
commitb934dab804da426441a8c657c198156b895b83bf (patch)
treed2737cecf25b53cae1271f4543c4d391004515f9 /phpBB/viewforum.php
parent444113e7f4b432569efc8fe3dc2d3d6a86afa1f1 (diff)
downloadforums-b934dab804da426441a8c657c198156b895b83bf.tar
forums-b934dab804da426441a8c657c198156b895b83bf.tar.gz
forums-b934dab804da426441a8c657c198156b895b83bf.tar.bz2
forums-b934dab804da426441a8c657c198156b895b83bf.tar.xz
forums-b934dab804da426441a8c657c198156b895b83bf.zip
fix for #5422
git-svn-id: file:///svn/phpbb/trunk@6609 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index f421e42c9f..989a30b6c8 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -147,9 +147,16 @@ if (!($forum_data['forum_type'] == FORUM_POST || (($forum_data['forum_flags'] &
page_footer();
}
-// Ok, if someone has only list-access, we only display the forum list
+// Ok, if someone has only list-access, we only display the forum list.
+// We also make this circumstance available to the template in case we want to display a notice. ;)
if (!$auth->acl_get('f_read', $forum_id))
{
+ $template->assign_vars(array(
+ 'S_NO_READ_ACCESS' => true,
+ 'S_AUTOLOGIN_ENABLED' => ($config['allow_autologin']) ? true : false,
+ 'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login&amp;redirect=' . urlencode(build_url(array('_f_'))))
+ ));
+
page_footer();
}