From: moodler Date: Thu, 16 Oct 2003 05:41:35 +0000 (+0000) Subject: Slight change to glossary_print_entry_icons so that X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b93cee20be6e8a190b7df6689a790f11b594ac8f;p=moodle.git Slight change to glossary_print_entry_icons so that "comments" link isn't printed if comments are disabled --- diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 08279b094d..c810c8dcab 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -235,13 +235,16 @@ function glossary_print_entry_icons($course, $cm, $glossary, $entry,$currentview $isteacher = isteacher($course->id); $ismainglossary = $glossary->mainglossary; - echo "
"; + echo ""; - $count = count_records("glossary_comments","entryid",$entry->id); - echo "id&eid=$entry->id\">$count " . get_string("comments","glossary") . ""; - echo "
"; if ( $glossary->allowcomments ) { + echo ""; + $count = count_records("glossary_comments","entryid",$entry->id); + echo "id&eid=$entry->id\">$count " . get_string("comments","glossary") . ""; + echo ""; echo "id&eid=$entry->id\">\"" "; + } else { + echo ""; } if ($isteacher or $glossary->studentcanpost and $entry->userid == $USER->id) {