diff options
author | Pascal Terjan <pterjan@gmail.com> | 2016-03-30 00:32:35 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@gmail.com> | 2016-03-30 00:32:35 +0100 |
commit | cc295f2e816a4841ade4d8998d668deef77c1320 (patch) | |
tree | 8d62d9929ae07140ea83a2d4983b11507c00cd7d /non-mandatory.php | |
parent | 56415f28bd3f11bd363b0579ffd4804ed6c11565 (diff) | |
download | pkgsubmit-cc295f2e816a4841ade4d8998d668deef77c1320.tar pkgsubmit-cc295f2e816a4841ade4d8998d668deef77c1320.tar.gz pkgsubmit-cc295f2e816a4841ade4d8998d668deef77c1320.tar.bz2 pkgsubmit-cc295f2e816a4841ade4d8998d668deef77c1320.tar.xz pkgsubmit-cc295f2e816a4841ade4d8998d668deef77c1320.zip |
Fix some links
Diffstat (limited to 'non-mandatory.php')
-rw-r--r-- | non-mandatory.php | 4 |
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']; |