]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-17707, replace p with div in module summary, merged from 1.9"
authordongsheng <dongsheng>
Fri, 16 Jan 2009 04:47:16 +0000 (04:47 +0000)
committerdongsheng <dongsheng>
Fri, 16 Jan 2009 04:47:16 +0000 (04:47 +0000)
mod/glossary/view.php

index 36075d03e4c76e5f6d075b00753d6a1fce5f2a69..d4d60a91eebea0b833d6ddba2976e68173f7925d 100644 (file)
 
 /// Info box
     if ( $glossary->intro && $showcommonelements ) {
-        print_box(format_text($glossary->intro), 'generalbox', 'intro');
+        $options = new stdclass;
+        $options->para = false;
+        print_box('<div>'.format_text($glossary->intro, FORMAT_MOODLE, $options).'</div>', 'generalbox', 'intro');
     }
 
 /// Search box