]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed link to picture file in print_picture_file
authormoodler <moodler>
Tue, 11 Feb 2003 01:53:10 +0000 (01:53 +0000)
committermoodler <moodler>
Tue, 11 Feb 2003 01:53:10 +0000 (01:53 +0000)
lib/weblib.php

index 0edaf2324feac84a42a1ba60b0006ab4282c3b4a..80352f03bc8e1a29a78266681308e951576638fa 100644 (file)
@@ -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 {