Changeset 30

Show
Ignore:
Timestamp:
03/01/07 18:48:26 (3 years ago)
Author:
eevee
Message:

Fixed: Avatar upload was relying on the cwd.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee/Controller/Users.pm

    r22 r30  
    311311            if ($width > $avmaxpixels or $height > $avmaxpixels) { push @errors, 'The height and/or width of your avatar is too large.'; delete $changes{avatar}; } 
    312312 
    313             my $target = "root/images/avatars/$padid"; 
     313            my $target = $c->path_to('root/images/avatars', $padid); 
    314314            if ($changes{avatar}) { 
    315315                unless ($av->link_to($target) || $av->copy_to($target) ) { $c->vee_abort("Failed to copy '" . $padid . "' to '" . $target . "': " . $!); }