aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-07 16:02:56 -0700
committerfriendica <info@friendica.com>2012-06-07 16:02:56 -0700
commitba2452a076c0635e94c6a0967b778df0df14eca7 (patch)
tree2fd57e8f38a29bb98c2f85502f9db214b29b34f9 /mod/photo.php
parent67d8afb9d18df137fddc991443f9b796b5821210 (diff)
downloadvolse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.tar.gz
volse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.tar.bz2
volse-hubzilla-ba2452a076c0635e94c6a0967b778df0df14eca7.zip
png support for embedded private photos
Diffstat (limited to 'mod/photo.php')
-rw-r--r--mod/photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photo.php b/mod/photo.php
index e8e74cfde..dee483d83 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -76,7 +76,7 @@ function photo_init(&$a) {
break;
}
- $uid = str_replace('.jpg', '', $person);
+ $uid = str_replace(array('.jpg','.png'),array('',''), $person);
$r = q("SELECT * FROM `photo` WHERE `scale` = %d AND `uid` = %d AND `profile` = 1 LIMIT 1",
intval($resolution),