diff options
Diffstat (limited to 'mod/dfrn_confirm.php')
-rw-r--r-- | mod/dfrn_confirm.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 44a6ad147..1f0ebee14 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -100,7 +100,7 @@ function dfrn_confirm_post(&$a) { $img->scaleImageSquare(175); - $hash = hash('md5',uniqid(mt_rand(),true)); + $hash = photo_new_resource(); $r = $img->store($local_uid, $dfrn_record, $hash, $filename, t('Contact Photos') , 4); @@ -332,12 +332,13 @@ function dfrn_confirm_post(&$a) { $img->scaleImageSquare(175); - $hash = hash('md5',uniqid(mt_rand(),true)); + $hash = photo_new_resource(); $r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 4 ); if($r === false) $photo_failure = true; + $img->scaleImage(80); $r = $img->store($uid, $contact_id, $hash, $filename, t('Contact Photos'), 5 ); |