[pLog-svn] r4510 - plog/trunk/templates/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Jan 4 23:39:13 GMT 2007


Author: oscar
Date: 2007-01-04 23:39:12 +0000 (Thu, 04 Jan 2007)
New Revision: 4510

Modified:
   plog/trunk/templates/admin/pluginsettings.template
Log:
Take the name of the option as its value if not value is specifed as the key in the array.

Modified: plog/trunk/templates/admin/pluginsettings.template
===================================================================
--- plog/trunk/templates/admin/pluginsettings.template	2007-01-04 23:33:55 UTC (rev 4509)
+++ plog/trunk/templates/admin/pluginsettings.template	2007-01-04 23:39:12 UTC (rev 4510)
@@ -37,6 +37,7 @@
 			  <select name="{$setting.name}">
 				{assign var=options value=$setting.options}
 				{foreach from=$options item=name key=value}
+					{if $value==""}{assign var=value value=$name}{/if}
 					<option value="{$value}" {if $key==$value}selected="selected"{/if}>{$name}</option>
 				{/foreach}
 			  </select>



More information about the pLog-svn mailing list