# HG changeset patch # User Dan Fuhry # Date 1284883468 14400 # Node ID b48d2de63007f20ed9467ecf8808d420eb141dad # Parent bd9e124f5904b30f9223553f7eb632af85c6d30c Hide the "Create an account" button if registration is disabled (Enanium only, but there is a template boolean called "registration_disabled" so other themes can use it too) diff -r bd9e124f5904 -r b48d2de63007 includes/template.php --- a/includes/template.php Sun Sep 05 16:05:33 2010 -0400 +++ b/includes/template.php Sun Sep 19 04:04:28 2010 -0400 @@ -501,7 +501,8 @@ 'auth_admin' => $session->user_level >= USER_LEVEL_ADMIN ? true : false, 'user_logged_in' => $session->user_logged_in, 'opera' => $is_opera, - 'msie' => $is_msie + 'msie' => $is_msie, + 'registration_disabled' => getConfig('account_activation', 'none') === 'disable' )); if ( $session->sid_super ) diff -r bd9e124f5904 -r b48d2de63007 themes/enanium/header.tpl --- a/themes/enanium/header.tpl Sun Sep 05 16:05:33 2010 -0400 +++ b/themes/enanium/header.tpl Sun Sep 19 04:04:28 2010 -0400 @@ -55,7 +55,9 @@
  • {lang:sidebar_btn_logout}
  • {lang:sidebar_btn_login}
  • +
  • {lang:sidebar_btn_register}
  • +