Changeset 2423

Show
Ignore:
Timestamp:
04/04/08 15:58:39 (3 months ago)
Author:
Geert
Message:

Follow-up and fix for r2422

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/system/libraries/Validation.php

    r2422 r2423  
    466466         * Return the errors array. 
    467467         * 
    468          * @param   boolean  load errors from the a lang file 
     468         * @param   boolean  load errors from a lang file 
    469469         * @return  array 
    470470         */ 
     
    483483                                $key = "$file.$input.$error"; 
    484484 
    485                                 if (($str = Kohana::lang($key)) === $key) 
     485                                if (($errors[$input] = Kohana::lang($key)) === $key) 
    486486                                { 
    487487                                        // Get the default error message