Skip to content

Commit 1300e7e

Browse files
Update lens_model.php
1 parent f187167 commit 1300e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/application/models/lens_model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public function get_relation_type($item) {
568568
$type = rtrim($type_p, "s");
569569
if ($type == 'replie') $type = 'reply';
570570
if (!isset($CI->$type_p) || 'object'!=gettype($CI->$type_p)) $CI->load->model($type.'_model',$type_p);
571-
$items = $CI->$type_p->get_parents($version_id, '', '', true, null);
571+
$items = $CI->$type_p->get_children($version_id, '', '', true, null);
572572
if (count($items)) $the_type= $type;
573573
}
574574

@@ -1137,4 +1137,4 @@ function call( $a, $b ) {
11371137
return lens_rdf_cmp($a, $b, $this->meta, $this->dir);
11381138
}
11391139
}
1140-
?>
1140+
?>

0 commit comments

Comments
 (0)