Changeset 2702

Show
Ignore:
Timestamp:
05/28/2008 04:48:30 PM (6 months ago)
Author:
Shadowhand
Message:

Merged r2701 into 2.1.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • releases/2.1.2/modules/forge/libraries/Forge.php

    r2700 r2702  
    9090                switch(count($args)) 
    9191                { 
    92                         case 0: 
    93                                 throw new Kohana_Exception('forge.invalid_input', $input); 
    94                         break; 
    9592                        case 1: 
    9693                                $input = new $input($args[0]); 
     
    9996                                $input = new $input($args[0], $args[1]); 
    10097                        break; 
     98                        default: 
     99                                throw new Kohana_Exception('forge.invalid_input', $input); 
    101100                } 
    102101 
    103102                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)); 
    105104 
    106105                $input->method = $this->attr['method'];