summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--non-mandatory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/non-mandatory.php b/non-mandatory.php
index 6b73568..29034c6 100644
--- a/non-mandatory.php
+++ b/non-mandatory.php
@@ -72,11 +72,11 @@ echo "<table>\n";
}
}
fclose($f);
- $link = '/uploads/failure/' . $p['path'] . '/log/' . $p['package'] . '/' . basename($install_deps_file);
+ $link = str_replace($upload_dir, '/uploads', $install_deps_file);
echo '<td><a rel="nofollow" href="' . $link . '">' . $status_line . '</a> ' . $dep_line . '</td>';
} elseif ($status_line == 'recreate_srpm_failure') {
$botcmd_files = glob($upload_dir . '/failure/' . $p['path'] . '/log/botcmd.*.log');
- $link = '/uploads/failure/' . $p['path'] . '/log/' . basename($botcmd_files[0]);
+ $link = str_replace($upload_dir, '/uploads', $botcmd_files[0]);
echo '<td><a rel="nofollow" href="' . $link . '">' . $status_line . '</a></td>';
} else {
$link = '/uploads/failure/' . $p['path'] . '/log/' . $p['package'];