fixed // in course root when browsing files; merged from MOODLE_16_STABLE

This commit is contained in:
skodak
2006-06-30 11:56:37 +00:00
parent c358d62055
commit 79b37009fc
+2 -2
View File
@@ -769,9 +769,9 @@ function displaydir ($wdir) {
print_cell("center", "<input type=\"checkbox\" name=\"file$count\" value=\"$fileurl\" />", 'checkbox');
echo "<td align=\"left\" nowrap=\"nowrap\" class=\"name\">";
if ($CFG->slasharguments) {
$ffurl = "/file.php/$id/$fileurl";
$ffurl = str_replace('//', '/', "/file.php/$id/$fileurl");
} else {
$ffurl = "/file.php?file=/$id/$fileurl";
$ffurl = str_replace('//', '/', "/file.php?file=/$id/$fileurl");
}
link_to_popup_window ($ffurl, "display",
"<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"File\" />",