[evolvis-commits] r18705: theme-evolvis pending merges:↵ Thorsten Glaser 2012-10-07 hide “New Account” link if user_reg_restricted

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 8 12:15:05 CEST 2012


Author: mirabilos
Date: 2012-10-08 12:15:03 +0200 (Mon, 08 Oct 2012)
New Revision: 18705

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/themes/evolvis/Theme.class.php
Log:
theme-evolvis pending merges:
  Thorsten Glaser 2012-10-07 hide “New Account” link if user_reg_restricted

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/themes/evolvis/Theme.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/themes/evolvis/Theme.class.php	2012-10-08 10:14:58 UTC (rev 18704)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/themes/evolvis/Theme.class.php	2012-10-08 10:15:03 UTC (rev 18705)
@@ -138,11 +138,13 @@
 					    urlencode(getStringFromServer('REQUEST_URI')),
 					_('Log In'),
 				    );
-				$p['globalmenu'][] = array(
-					_('Register a user account with the Forge system'),
-					"/account/register.php",
-					_('New Account'),
-				    );
+				if (!forge_get_config('user_registration_restricted')) {
+					$p['globalmenu'][] = array(
+						_('Register a user account with the Forge system'),
+						"/account/register.php",
+						_('New Account'),
+					    );
+				}
 			}
 			$psm = array('skipmypage' => true);
 			if (util_ifsetor($params['toptab'])) {



More information about the evolvis-commits mailing list