Skip to content

Commit

Permalink
Bug 562908 - Populate the JustJ Git clones with initial content
Browse files Browse the repository at this point in the history
Fix download link for justj-specific browser pages.
  • Loading branch information
merks committed May 25, 2020
1 parent 4d7588d commit 4c2825b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/browse.php
Expand Up @@ -129,7 +129,7 @@ function perms($file) {
}

function listFolderFiles($actualURL, $baseURL, $basePath, $dir) {
global $prefix;
global $prefix, $projectName;
echo "<table style='width: 100%; table-layout: fixed;'>";
$header = <<<EOHEADER
<tr>
Expand Down Expand Up @@ -183,7 +183,7 @@ function listFolderFiles($actualURL, $baseURL, $basePath, $dir) {
echo '<td><a href="' . $actualURL . $f .'"><img src="' . $prefix .'icons/file.svg"/>&nbsp;' . $f . "</a></td>\n";
$size = filesize($dir.'/'.$f);
$value = convertFileSize($size);
$downloadLink = "https://www.eclipse.org/downloads/download.php?file=" . ($basePath == "" ? "" : "/$basePath") . "/$f";
$downloadLink = "https://www.eclipse.org/downloads/download.php?file=" . ($projectName == "/" ? "" : $projectName) . ($basePath == "" ? "" : "/$basePath") . "/$f";
$download = '<a href="' . $downloadLink . '"><span class="col-sm-6 downloadLink-icon" style="float: right;"><i class="fa fa-download"></i></span></a>';
echo "<td class='ff'>" . $value . "$download</td>\n";
$perms = perms($path);
Expand Down

0 comments on commit 4c2825b

Please sign in to comment.