[Fusionforge-commits] r14726 - trunk/src/www/account

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 15:45:49 CEST 2011


Author: aljeux
Date: 2011-10-26 15:45:48 +0200 (Wed, 26 Oct 2011)
New Revision: 14726

Modified:
   trunk/src/www/account/register.php
Log:
No select box for theme if only one theme available

Modified: trunk/src/www/account/register.php
===================================================================
--- trunk/src/www/account/register.php	2011-10-26 13:32:00 UTC (rev 14725)
+++ trunk/src/www/account/register.php	2011-10-26 13:45:48 UTC (rev 14726)
@@ -175,10 +175,15 @@
 <?php echo _('Timezone:'); ?><br />
 <?php echo html_get_timezone_popup('timezone', $timezone); ?>
 </p>
+<?php
+$toDisplay = html_get_theme_popup('theme_id', $theme_id);
+if($toDisplay != "") {
+?>
 <p>
 <?php echo _('Theme'); ?><br />
-<?php echo html_get_theme_popup('theme_id', $theme_id); ?>
+<?php echo $toDisplay; ?>
 </p>
+<?php } ?>
 <p>
 <?php echo _('Country:'); ?><br />
 <?php echo html_get_ccode_popup('ccode', $ccode); ?>




More information about the Fusionforge-commits mailing list