Changeset 2702
- Timestamp:
- 05/28/2008 04:48:30 PM (6 months ago)
- Files:
-
- 1 modified
-
releases/2.1.2/modules/forge/libraries/Forge.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
releases/2.1.2/modules/forge/libraries/Forge.php
r2700 r2702 90 90 switch(count($args)) 91 91 { 92 case 0:93 throw new Kohana_Exception('forge.invalid_input', $input);94 break;95 92 case 1: 96 93 $input = new $input($args[0]); … … 99 96 $input = new $input($args[0], $args[1]); 100 97 break; 98 default: 99 throw new Kohana_Exception('forge.invalid_input', $input); 101 100 } 102 101 103 102 if ( ! ($input instanceof Form_Input) AND ! ($input instanceof Forge)) 104 throw new Kohana_Exception('forge. invalid_input', get_class($input));103 throw new Kohana_Exception('forge.unknown_input', get_class($input)); 105 104 106 105 $input->method = $this->attr['method'];
