From 0f77edc4fb5581eacd0305ec9010b78afc489b55 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 28 Sep 2014 14:14:04 +0200 Subject: hint for disabled registration --- includes/pages/guest_login.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/includes/pages/guest_login.php b/includes/pages/guest_login.php index c255266d..f738b69d 100644 --- a/includes/pages/guest_login.php +++ b/includes/pages/guest_login.php @@ -1,4 +1,5 @@ ' . _("Please sign up, if you want to help us!") . '

', + buttons(array( + button(page_link_to('register'), register_title() . ' »') + )) + )); + } else { + $register_hint = join('', array( + error(_('Registration is disabled.'), true) + )); + } + return page_with_title(login_title(), array( msg(), '
', @@ -268,10 +282,7 @@ function guest_login() { '
', '
', '

' . register_title() . '

', - '

' . _("Please sign up, if you want to help us!") . '

', - buttons(array( - button(page_link_to('register'), register_title() . ' »') - )), + $register_hint, '

' . _("What can I do?") . '

', '

' . _("Please read about the jobs you can do to help us.") . '

', buttons(array( -- cgit v1.2.3-54-g00ecf