Changeset 1448

Show
Ignore:
Timestamp:
12/07/07 14:16:36 (9 months ago)
Author:
Shadowhand
Message:

Added Form_Citystatezip

Location:
trunk/modules/forge/libraries
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Address.php

    r1447 r1448  
    3636                // Address line 1 
    3737                $line1['name']  .= '[line1]'; 
    38                 $line1['value']  = array_shift($value); 
     38                $line1['value']  = current($value); 
    3939 
    4040                // Address line 2 
    4141                $line2['name']  .= '[line2]'; 
    42                 $line2['value']  = array_shift($value); 
     42                $line2['value']  = next($value); 
    4343                $line2['class'] .= '-2'; 
    4444 
    4545                // Address unit 
    4646                $unit['name']  .= '[unit]'; 
    47                 $unit['value']  = array_shift($value); 
     47                $unit['value']  = next($value); 
    4848                $unit['class'] .= '-unit'; 
    4949 
  • trunk/modules/forge/libraries/Form_Input.php

    r1447 r1448  
    193193                                $args = is_array($args) ? $args : array(); 
    194194 
    195                                 array_unshift($args, isset($this->data['label']) 
    196                                         ? strtolower($this->data['label']) 
    197                                         : $this->data['name']); 
     195                                array_unshift($args, $this->label 
     196                                        ? strtolower($this->label) 
     197                                        : $this->name); 
    198198 
    199199                                // Fetch an i18n error message