diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-09-09 18:49:19 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-09-09 18:49:19 -0700 |
commit | 82986cc993133dbe7b9bbc966539ae188b070215 (patch) | |
tree | 51b6d4e0fc746f6209fd178dbb97922f0c7badc9 /mod | |
parent | bbc0200661e6e885e0a0146cf6fcb7461e4649ad (diff) | |
download | volse-hubzilla-82986cc993133dbe7b9bbc966539ae188b070215.tar.gz volse-hubzilla-82986cc993133dbe7b9bbc966539ae188b070215.tar.bz2 volse-hubzilla-82986cc993133dbe7b9bbc966539ae188b070215.zip |
fixes
Diffstat (limited to 'mod')
-rw-r--r-- | mod/display.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/mod/display.php b/mod/display.php index 2125e1696..639a30eb7 100644 --- a/mod/display.php +++ b/mod/display.php @@ -75,7 +75,7 @@ function display_content(&$a) { " AND ( `allow_cid` = '' OR `allow_cid` REGEXP '<%d>' ) AND ( `deny_cid` = '' OR NOT `deny_cid` REGEXP '<%d>' ) AND ( `allow_gid` = '' OR `allow_gid` REGEXP '%s' ) - AND ( `deny_gid` = '' OR NOT `deny_gid` REGEXP '%s') ", + AND ( `deny_gid` = '' OR NOT `deny_gid` REGEXP '%s') ", intval($_SESSION['visitor_id']), intval($_SESSION['visitor_id']), @@ -91,17 +91,19 @@ function display_content(&$a) { FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0 AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0 - AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE `id` = %d ) + AND `item`.`parent` = ( SELECT `parent` FROM `item` WHERE ( `id` = '%s' OR `uri` = '%s' )) $sql_extra ORDER BY `parent` DESC, `id` ASC ", intval($a->profile['uid']), - intval($item_id) + dbesc($item_id), + dbesc($item_id) ); $cmnt_tpl = file_get_contents('view/comment_item.tpl'); $tpl = file_get_contents('view/wall_item.tpl'); + $wallwall = file_get_contents('view/wallwall_item.tpl'); $return_url = $_SESSION['return_url'] = $a->cmd; @@ -164,9 +166,6 @@ function display_content(&$a) { } } - - - $profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']); $profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']); $profile_link = $profile_url; @@ -187,12 +186,14 @@ function display_content(&$a) { '$ago' => relative_date($item['created']), '$location' => (($item['location']) ? '<a target="map" href="http://maps.google.com/?q=' . urlencode($item['location']) . '">' . $item['location'] . '</a>' : ''), '$indent' => (($item['parent'] != $item['item_id']) ? ' comment' : ''), + '$owner_url' => $owner_url, + '$owner_photo' => $owner_photo, + '$owner_name' => $owner_name, '$drop' => $drop, '$comment' => $comment )); - + } } - return $o; }
\ No newline at end of file |