Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed // in course root when browsing files; merged from MOODLE_16_ST…
…ABLE
  • Loading branch information
skodak committed Jun 30, 2006
1 parent c358d62 commit 79b3700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/index.php
Expand Up @@ -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\" />",
Expand Down

0 comments on commit 79b3700

Please sign in to comment.