[Pieforms-commit] SF.net SVN: pieforms: [183] pieforms-php5/branches/0.2.0/src/pieform.php
Status: Alpha
Brought to you by:
oracleshinoda
|
From: <ora...@us...> - 2007-02-14 08:37:03
|
Revision: 183
http://svn.sourceforge.net/pieforms/?rev=183&view=rev
Author: oracleshinoda
Date: 2007-02-14 00:37:02 -0800 (Wed, 14 Feb 2007)
Log Message:
-----------
Fixed the rules-apply-differently-depending-on-element thing. Not sure how this fix wasn't already checked in...
Modified Paths:
--------------
pieforms-php5/branches/0.2.0/src/pieform.php
Modified: pieforms-php5/branches/0.2.0/src/pieform.php
===================================================================
--- pieforms-php5/branches/0.2.0/src/pieform.php 2007-02-11 09:43:21 UTC (rev 182)
+++ pieforms-php5/branches/0.2.0/src/pieform.php 2007-02-14 08:37:02 UTC (rev 183)
@@ -831,7 +831,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.
|