--- a/includes/template.php Tue Sep 21 14:14:55 2010 -0400
+++ b/includes/template.php Tue Sep 21 14:15:04 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 )
--- a/themes/enanium/header.tpl Tue Sep 21 14:14:55 2010 -0400
+++ b/themes/enanium/header.tpl Tue Sep 21 14:15:04 2010 -0400
@@ -55,7 +55,9 @@
<li class="logout"><a href="{url:Special:Logout/{CSRF_TOKEN}/{PAGE_URLNAME}}" onclick="mb_logout(); return false;">{lang:sidebar_btn_logout}</a></li>
<!-- BEGINELSE user_logged_in -->
<li class="em"><a href="{url:Special:Login}" onclick="ajaxStartLogin(); return false;">{lang:sidebar_btn_login}</a></li>
+ <!-- BEGINNOT registration_disabled -->
<li><a href="{url:Special:Register}">{lang:sidebar_btn_register}</a></li>
+ <!-- END registration_disabled -->
<!-- END user_logged_in -->
</ul>
<!-- END stupid_mode -->