]> git.mxchange.org Git - friendica.git/commitdiff
Profile photos are now having an extension
authorMichael Vogel <icarus@dabo.de>
Fri, 13 Nov 2015 09:15:30 +0000 (10:15 +0100)
committerMichael Vogel <icarus@dabo.de>
Fri, 13 Nov 2015 09:15:30 +0000 (10:15 +0100)
mod/profile_photo.php

index b7e9340ce60040fe772784c5ba2142b5791a4a16..4e8d279a972b7ce7ec54b03ee12416a8ec627659 100644 (file)
@@ -99,15 +99,15 @@ function profile_photo_post(&$a) {
                                        );
 
                                        $r = q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s'  WHERE `self` AND `uid` = %d",
-                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-4'),
-                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-5'),
-                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-6'),
+                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-4.' . $im->getExt()),
+                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-5.' . $im->getExt()),
+                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-6.' . $im->getExt()),
                                                intval(local_user())
                                        );
                                } else {
                                        $r = q("update profile set photo = '%s', thumb = '%s' where id = %d and uid = %d",
-                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-4'),
-                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-5'),
+                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-4.' . $im->getExt()),
+                                               dbesc($a->get_baseurl() . '/photo/' . $base_image['resource-id'] . '-5.' . $im->getExt()),
                                                intval($_REQUEST['profile']),
                                                intval(local_user())
                                        );