diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-15 23:37:51 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-15 23:37:51 -0700 |
commit | bc72d3fd2659326e223120c337a59090d97985fe (patch) | |
tree | abed1839e297d4a65fed776320115ba91c2dfc41 /mod/photo.php | |
parent | bdedda7c6b4bf85b5fae151e6d93efe3f01dffa3 (diff) | |
download | volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.gz volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.bz2 volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.zip |
move profile photos to new methods
Diffstat (limited to 'mod/photo.php')
-rw-r--r-- | mod/photo.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/photo.php b/mod/photo.php index f757372bf..e6d21562d 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -61,9 +61,10 @@ function photo_init(&$a) { $uid = $person; - $r = q("SELECT * FROM photo WHERE scale = %d AND uid = %d AND profile = 1 LIMIT 1", + $r = q("SELECT * FROM photo WHERE scale = %d AND uid = %d AND photo_usage = %d LIMIT 1", intval($resolution), - intval($uid) + intval($uid), + intval(PHOTO_PROFILE) ); if(count($r)) { $data = dbunescbin($r[0]['data']); |