summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2016-03-30 23:05:53 +0100
committerPascal Terjan <pterjan@gmail.com>2016-03-30 23:05:53 +0100
commit8c96cd15fe6b312649dc5d9004656ad7c279bd80 (patch)
treea395471580f506d778dec053322cd1069f30bd41
parentcc295f2e816a4841ade4d8998d668deef77c1320 (diff)
downloadpkgsubmit-8c96cd15fe6b312649dc5d9004656ad7c279bd80.tar
pkgsubmit-8c96cd15fe6b312649dc5d9004656ad7c279bd80.tar.gz
pkgsubmit-8c96cd15fe6b312649dc5d9004656ad7c279bd80.tar.bz2
pkgsubmit-8c96cd15fe6b312649dc5d9004656ad7c279bd80.tar.xz
pkgsubmit-8c96cd15fe6b312649dc5d9004656ad7c279bd80.zip
Fix more links
-rw-r--r--non-mandatory.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/non-mandatory.php b/non-mandatory.php
index 29034c6..6a42a8a 100644
--- a/non-mandatory.php
+++ b/non-mandatory.php
@@ -79,7 +79,8 @@ echo "<table>\n";
$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'];
+ $dirs = glob($upload_dir . '/failure/' . $p['path'] . '/log/*/');
+ $link = str_replace($upload_dir, '/uploads', $dirs[0]);
echo '<td><a rel="nofollow" href="' . $link . '">' . $status_line . '</a></td>';
}
echo "</tr>\n";