Changeset 2699

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

Fixing #430, thanks xadio.

Location:
trunk/modules/forge
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/i18n/en_US/forge.php

    r2123 r2699  
    33$lang = array 
    44( 
     5        'invalid_input' => 'Error loading %s: All inputs must be constructed with a name', 
    56        'unknown_input' => 'Unable to find a Forge input class for: %s', 
    67); 
  • trunk/modules/forge/libraries/Forge.php

    r2593 r2699  
    9090                switch (count($args)) 
    9191                { 
     92                        case 0: 
     93                                throw new Kohana_Exception('forge.invalid_input', $input); 
     94                        break; 
    9295                        case 1: 
    9396                                $input = new $input($args[0]);