Changeset 1450
- Timestamp:
- 12/07/07 15:04:42 (9 months ago)
- Location:
- trunk/modules/forge
- Files:
-
- 2 removed
- 3 modified
-
helpers/locale_US.php (modified) (1 diff)
-
i18n/en_US/forge.php (modified) (1 diff)
-
libraries/Form_Address.php (deleted)
-
libraries/Form_Citystatezip.php (deleted)
-
libraries/Form_Input.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/forge/helpers/locale_US.php
r1438 r1450 2 2 3 3 class locale_US { 4 5 public function months()6 {7 return array();8 }9 4 10 5 public function states() -
trunk/modules/forge/i18n/en_US/forge.php
r1447 r1450 3 3 $lang = array 4 4 ( 5 'address_unit' => 'Unit' 5 'address_unit' => 'Unit #', 6 'address_city' => 'City', 7 'address_state' => 'State', 8 'address_zip' => 'Zip' 6 9 ); -
trunk/modules/forge/libraries/Form_Input.php
r1448 r1450 193 193 $args = is_array($args) ? $args : array(); 194 194 195 array_unshift($args, $this->label 196 ? strtolower($this->label) 197 : $this->name); 195 // Add the label or name to the beginning of the args 196 array_unshift($args, $this->label ? strtolower($this->label) : $this->name); 198 197 199 198 // Fetch an i18n error message … … 260 259 $func = substr($rule, 6); 261 260 262 if ( ! valid::$func($this->value))261 if ($this->value AND ! valid::$func($this->value)) 263 262 { 264 263 $this->errors[$rule] = TRUE;
