Revision: 16
http://svn.sourceforge.net/pieforms/?rev=16&view=rev
Author: oracleshinoda
Date: 2006-11-18 03:11:48 -0800 (Sat, 18 Nov 2006)
Log Message:
-----------
Fixed the 'select' element: hsc() replaced with Pieform::hsc()
Modified Paths:
--------------
pieforms/src/pieform/elements/select.php
Modified: pieforms/src/pieform/elements/select.php
===================================================================
--- pieforms/src/pieform/elements/select.php 2006-11-18 11:08:02 UTC (rev 15)
+++ pieforms/src/pieform/elements/select.php 2006-11-18 11:11:48 UTC (rev 16)
@@ -24,14 +24,12 @@
*
*/
-
-
/**
* Renders a dropdown list, including support for multiple choices.
*
- * @param array $element The element to render
+ * @param array $element The element to render
* @param Pieform $form The form to render the element for
- * @return string The HTML for the element
+ * @return string The HTML for the element
*/
function pieform_render_select($element, Pieform $form) {
if (!empty($element['multiple'])) {
@@ -78,7 +76,7 @@
else {
$selected = '';
}
- $result .= "\t<option value=\"" . hsc($key) . "\"$selected>" . hsc($value) . "</option>\n";
+ $result .= "\t<option value=\"" . Pieform::hsc($key) . "\"$selected>" . Pieform::hsc($value) . "</option>\n";
}
$result .= '</select>';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|