From 74e5d80e899562b6505ce7c4865041448b22470d Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 13 Dec 2006 01:05:38 +0000 Subject: - feature 599: option to forbid user registration - 1 language cleanup - added page_forbidden function (sends 403) git-svn-id: http://piwigo.org/svn/trunk@1652 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/menubar.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/menubar.inc.php') diff --git a/include/menubar.inc.php b/include/menubar.inc.php index c360b2600..c149b3553 100755 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -206,7 +206,6 @@ $template->assign_block_vars( if ($user['is_the_guest']) { - $template->assign_block_vars('register', array()); $template->assign_block_vars('login', array()); $template->assign_block_vars('quickconnect', array()); @@ -214,6 +213,11 @@ if ($user['is_the_guest']) { $template->assign_block_vars('quickconnect.remember_me', array()); } + if ($conf['allow_user_registration']) + { + $template->assign_block_vars('register', array()); + $template->assign_block_vars('quickconnect.register', array()); + } } else { -- cgit v1.2.3