summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-09-17 19:06:18 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-09-17 19:06:18 +0200
commitdd808ac8023175f940f54746fc69f9a61a80fc03 (patch)
tree8e371ac8a51b7a6d140daf99745120dac46b225d /web/template/pkg_details.php
parent2c20403cc4e7f788b04afbf7adda6e96e3cfcf27 (diff)
downloadaur-dd808ac8023175f940f54746fc69f9a61a80fc03.tar.gz
aur-dd808ac8023175f940f54746fc69f9a61a80fc03.tar.xz
Use a separate function for "Required by" links
Do not use the same function for generating dependency and inverse dependency links. Instead, factor out common code and create two separate functions for those (rather different) functionalities. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r--web/template/pkg_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index 5ba3607a..0a2d90eb 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -285,7 +285,7 @@ endif;
<?php if (count($requiredby) > 0): ?>
<ul id="pkgreqslist">
<?php while (list($k, $darr) = each($requiredby)): ?>
- <li><?= pkg_depend_link($darr[0], $darr[1], $darr[2], $darr[3], $darr[4], false); ?></li>
+ <li><?= pkg_requiredby_link($darr[0], $darr[1], $darr[2]); ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>