mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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>
This commit is contained in:
parent
2c20403cc4
commit
dd808ac802
2 changed files with 66 additions and 28 deletions
|
@ -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; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue