]> git.mjollnir.org Git - moodle.git/commitdiff
fixed warning and removed ugly hack in attachment path; merged from MOODLE_16_STABLE
authorskodak <skodak>
Fri, 2 Jun 2006 06:49:08 +0000 (06:49 +0000)
committerskodak <skodak>
Fri, 2 Jun 2006 06:49:08 +0000 (06:49 +0000)
mod/forum/rsslib.php

index a4021cb9147ee990d02734e3123014d731aba787..3328e7d47a1f05dea02e25e5c9f717658ecddd7d 100644 (file)
                 $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)) {