function show_atom($summary, $annotations) { global $CFG; $annotationobjs = array(); foreach ($annotations as $annotationrec) { $annotationobjs[] = annotation_globals::record_to_annotation($annotationrec); } MarginaliaHelper::generateAnnotationFeed($annotationobjs, annotation_globals::get_feed_tag_uri(), MarginaliaHelper::getLastModified($annotationObjs, annotation_globals::get_install_date()), annotation_globals::get_service_path(), annotation_globals::get_host(), $summary->get_feed_url('atom'), $CFG->wwwroot); }