diff options
author | Zvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net> | 2012-06-17 23:20:14 +0300 |
---|---|---|
committer | Zvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net> | 2012-06-17 23:20:14 +0300 |
commit | 59e0b6a0e33f1454099423782420a7f986e1928e (patch) | |
tree | 9fc557ba390409a7cf8fd29ede9fd2d79274807d /mod/directory.php | |
parent | 7c2d27e2750dc0b6cc7448f8e85b25a3c9b09687 (diff) | |
download | volse-hubzilla-59e0b6a0e33f1454099423782420a7f986e1928e.tar.gz volse-hubzilla-59e0b6a0e33f1454099423782420a7f986e1928e.tar.bz2 volse-hubzilla-59e0b6a0e33f1454099423782420a7f986e1928e.zip |
Enabled Profile photo revisions to be displayed on /directory page
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index 367438845..7f3a44ff4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -73,7 +73,7 @@ function directory_content(&$a) { $order = " ORDER BY `name` ASC "; - $r = q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname`, `user`.`timezone` FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 $sql_extra $order LIMIT %d , %d ", + $r = q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `contact`.`avatar-date` AS picdate, `user`.`nickname`, `user`.`timezone` FROM `profile` LEFT join `contact` on `contact`.`uid` = `profile`.`uid` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 AND `self` = 1 $publish AND `user`.`blocked` = 0 $sql_extra $order LIMIT %d , %d ", intval($a->pager['start']), intval($a->pager['itemspage']) ); @@ -116,7 +116,7 @@ function directory_content(&$a) { $entry = replace_macros($tpl,array( '$id' => $rr['id'], '$profile-link' => $profile_link, - '$photo' => $rr[$photo], + '$photo' => $rr[$photo] . '?rev=' . urlencode($rr['picdate']), '$alt-text' => $rr['name'], '$name' => $rr['name'], '$details' => $pdesc . $details |