[Solar-svn] Revision 2966

pmjones at solarphp.com pmjones at solarphp.com
Fri Dec 7 21:58:25 CST 2007


Solar_View_Helper_Form: [CHG] Only output descriptions if they don't begin with 'DESCR_'.  Thanks, Antti Holvikari.


Modified: trunk/Solar/View/Helper/Form.php
===================================================================
--- trunk/Solar/View/Helper/Form.php	2007-12-05 20:04:47 UTC (rev 2965)
+++ trunk/Solar/View/Helper/Form.php	2007-12-08 03:58:25 UTC (rev 2966)
@@ -605,7 +605,10 @@
                 // get the element description
                 $dt_descr = '';
                 $dd_descr = '';
-                if ($info['descr']) {
+                
+                // only build a description if it's non-empty, and isn't a
+                // DESCR_* "empty" locale value.
+                if ($info['descr'] && substr($info['descr'], 0, 6) != 'DESCR_') {
                     
                     // build the base description.
                     // open the tag ...




More information about the Solar-svn mailing list