[Pieforms-commit] SF.net SVN: pieforms: [170] pieforms-php5/trunk/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
|
From: <ora...@us...> - 2007-01-20 08:03:37
|
Revision: 170
http://svn.sourceforge.net/pieforms/?rev=170&view=rev
Author: oracleshinoda
Date: 2007-01-20 00:03:36 -0800 (Sat, 20 Jan 2007)
Log Message:
-----------
Use the type of the element instead of the name when working out the custom rule function
Modified Paths:
--------------
pieforms-php5/trunk/src/pieform.php
Modified: pieforms-php5/trunk/src/pieform.php
===================================================================
--- pieforms-php5/trunk/src/pieform.php 2007-01-20 08:03:05 UTC (rev 169)
+++ pieforms-php5/trunk/src/pieform.php 2007-01-20 08:03:36 UTC (rev 170)
@@ -815,7 +815,7 @@
if (!$this->get_error($element['name'])) {
// See if this element has a function that describes
// how this rule should apply to it
- $function = 'pieform_element_' . $element['name'] . '_rule_' . $rule;
+ $function = 'pieform_element_' . $element['type'] . '_rule_' . $rule;
if (!function_exists($function)) {
// Try instead the default rule function
$function = 'pieform_rule_' . $rule;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|