Good catch. I will take a look at it; if you're correct (and I suspect
you are) I will make that change in the core.
Matt
> --
> You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
> To post to this group, send email to reason-d...@googlegroups.com.
> To unsubscribe from this group, send email to reason-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reason-discussion?hl=en.
>
>
function get_teaser_image($item)
{
$es = new entity_selector();
$es->description = 'Finding teaser image for news item';
$es->set_env( 'site' , $this->site_id );
$es->add_type( id_of('image') );
$es->add_right_relationship( $item->id(),
relationship_id_of('news_to_teaser_image') );
$es->set_num (1);
$result = $es->run_one();
return $result;
}
-- Matt