* Maybe we should establish a way to be notified about conversation changes
*/
$this->check_wall_to_wall();
+
if($this->is_wall_to_wall() && ($this->get_owner_url() == $this->get_redirect_url()))
$osparkle = ' sparkle';
$body = prepare_body($item,true);
$tmp_item = array(
- // template to use to render item (wall, walltowall, search)
'template' => $this->get_template(),
'type' => implode("",array_slice(explode("/",$item['verb']),-1)),
'vote' => $buttons,
'like' => $like,
'dislike' => $dislike,
- 'comment' => $this->get_comment_box($commentww),
+ 'comment' => $this->get_comment_box(),
'previewing' => $previewing,
'wait' => t('Please wait'),
);
$children = $this->get_children();
$nb_children = count($children);
if($nb_children > 0) {
- foreach($this->get_children() as $child) {
+ foreach($children as $child) {
$result['children'][] = $child->get_template_data($alike, $dlike, $thread_level + 1);
}
// Collapse
* _ The comment box string (empty if no comment box)
* _ false on failure
*/
- private function get_comment_box($ww) {
+ private function get_comment_box() {
if(!$this->is_toplevel() && !get_config('system','thread_allow')) {
return '';
}