fixed warning and removed ugly hack in attachment path; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-06-02 06:49:08 +00:00
parent f24eb26139
commit ee1e1a3b99
+1 -1
View File
@@ -263,7 +263,7 @@
$item->description = format_text($rec->postmessage,$rec->postformat,NULL,$forum->course);
$post_file_area_name = str_replace('//', '/', "$forum->course/$CFG->moddata/$rec->course/forum/$forum->id/$rec->postid");
$post_file_area_name = "$forum->course/$CFG->moddata/forum/$forum->id/$rec->postid";
$post_files = get_directory_list("$CFG->dataroot/$post_file_area_name");
if (!empty($post_files)) {