From 3f3960656dced158e9163c74691fd7d41ca96541 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 11 Feb 2003 01:53:10 +0000 Subject: [PATCH] Fixed link to picture file in print_picture_file --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5