Changeset 1156 for trunk/common
- Timestamp:
- 12/06/11 01:14:30 (6 months ago)
- File:
-
- 1 edited
-
trunk/common/avatar.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/avatar.php
r1155 r1156 21 21 'L50x50' => 'normal/' , '75x75'=> 'forum/', '150x150' => 'big/'); 22 22 23 // Copying the original image 24 copy($filepath, IA_AVATAR_FOLDER.'full/'.$new_filename); 23 // Hardlink / Copy the original image 24 $new_filepath = IA_AVATAR_FOLDER . 'full/' . $new_filename; 25 if (is_file($new_filepath) || is_link($new_filepath)) { 26 unlink($new_filepath); 27 } 28 if (!link($filepath, $new_filepath)) { 29 if (!copy($filepath, $new_filepath)) { 30 log_error('Unable to copy user avatar into avatar folder'); 31 } 32 } 25 33 26 34 list($image_width, $image_height, $image_type, $image_attribute) =
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)