Merged
authorDan Fuhry <dan@enanocms.org>
Tue, 21 Sep 2010 14:15:04 -0400
changeset 1304 0470b3176781
parent 1303 ed0bd14b6223 (current diff)
parent 1302 b48d2de63007 (diff)
child 1305 ba8a648baebc
Merged
--- 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 -->