From: moodler Date: Tue, 11 Feb 2003 01:53:10 +0000 (+0000) Subject: Fixed link to picture file in print_picture_file X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3f3960656dced158e9163c74691fd7d41ca96541;p=moodle.git Fixed link to picture file in print_picture_file --- diff --git a/lib/weblib.php b/lib/weblib.php index 0edaf2324f..80352f03bc 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -777,7 +777,7 @@ function print_file_picture($path, $courseid=0, $height="", $width="", $link="") if ($CFG->slasharguments) { // Use this method if possible for better caching echo "$CFG->wwwroot/file.php/$courseid/$path"; } else { - echo "$CFG->wwwroot/file.php?file=$courseid/$path"; + echo "$CFG->wwwroot/file.php?file=/$courseid/$path"; } echo "\">"; } else {