Fix path problem with main directory listing

This commit is contained in:
moodler
2004-05-02 15:25:46 +00:00
parent cd2dea0a8d
commit 593d774fb0
+2 -2
View File
@@ -446,9 +446,9 @@
$icon = mimeinfo("icon", $file);
if ($CFG->slasharguments) {
$relativeurl = "/file.php/$course->id/$resource->reference/$file";
$relativeurl = "/file.php/$relativepath/$file";
} else {
$relativeurl = "/file.php?file=/$course->id/$resource->reference/$file";
$relativeurl = "/file.php?file=/$relativepath/$file";
}
$filesize = display_size(filesize("$CFG->dataroot/$course->id/$resource->reference/$file"));