]> git.mjollnir.org Git - moodle.git/commitdiff
Minor changes to make things into formats easier.
authorstronk7 <stronk7>
Sun, 1 Aug 2004 00:17:07 +0000 (00:17 +0000)
committerstronk7 <stronk7>
Sun, 1 Aug 2004 00:17:07 +0000 (00:17 +0000)
mod/glossary/lib.php

index e7033e1d5ca0f41965b666c3fafdd8905286447b..dc17b75e94d0cd52c8eea0364bc17633d064786a 100644 (file)
@@ -666,10 +666,13 @@ function glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode
     }
 }
 
-function  glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons,$ratings) {
+function  glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons,$ratings,$aliases=true) {
 
-    $aliases = glossary_print_entry_aliases($course, $cm, $glossary, $entry, $mode, $hook,"html");
+    if ($aliases) {
+        $aliases = glossary_print_entry_aliases($course, $cm, $glossary, $entry, $mode, $hook,"html");
+    }
     $icons   = "";
+    $return   = "";
     if ( $printicons ) {
         $icons   = glossary_print_entry_icons($course, $cm, $glossary, $entry, $mode, $hook,"html");
     }
@@ -699,7 +702,7 @@ function glossary_print_entry_attachment($entry,$format=NULL,$align="right") {
     if ($entry->attachment) {
           $glossary = get_record("glossary","id",$entry->glossaryid);            
           $entry->course = $glossary->course; //used inside print_attachment
-          echo "<table border=0 width=\"100%\"><tr><td align=\"$align\">\n";
+          echo "<table border=0 width=\"100%\"><tr><td align=\"$align\" nowrap>\n";
           echo glossary_print_attachments($entry,$format,$align);
           echo "</td></tr></table>\n";
     }