From ee1e1a3b990b154aed86746e8d0ca467c2480f17 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 2 Jun 2006 06:49:08 +0000 Subject: [PATCH] fixed warning and removed ugly hack in attachment path; merged from MOODLE_16_STABLE --- mod/forum/rsslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/rsslib.php b/mod/forum/rsslib.php index a4021cb9147ee..3328e7d47a1f0 100644 --- a/mod/forum/rsslib.php +++ b/mod/forum/rsslib.php @@ -263,7 +263,7 @@ function forum_rss_feed_posts($forum, $newsince=0) { $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)) {