Skip to content

Commit

Permalink
Add missing argument in example for Upload::Image()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikke committed Jan 1, 2012
1 parent 02542a7 commit 12f2742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ public static function size(array $file, $size)
* $array->rule('image', 'Upload::image')
*
* // The "photo" file has a maximum size of 640x480 pixels
* $array->rule('photo', 'Upload::image', array(640, 480));
* $array->rule('photo', 'Upload::image', array(':value', 640, 480));
*
* // The "image" file must be exactly 100x100 pixels
* $array->rule('image', 'Upload::image', array(100, 100, TRUE));
* $array->rule('image', 'Upload::image', array(':value', 100, 100, TRUE));
*
*
* @param array $file $_FILES item
Expand Down

0 comments on commit 12f2742

Please sign in to comment.