[aur-dev] [PATCH 1/2] pkg_details.php: Fix dependency links
Remove an erroneous quote from the destination URL of links to officially supported package dependencies on archweb. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/template/pkg_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 05a20fe..67110fa 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -138,7 +138,7 @@ if ($atype == "Developer" || $atype == "Trusted User"): ?> <li><a href="packages.php?ID=<?php echo $darr[2]?>" title="<?php echo __('View packages details for').' '.$darr[0].$darr[1]?>"><?php echo $darr[0].$darr[1]?></a></li> <?php else: ?> - <li><a href="http://www.archlinux.org/packages/?q="<?php echo urlencode($darr[0])?>" title="<?php echo __('View packages details for').' '.$darr[0].$darr[1] ?>"><?php echo $darr[0].$darr[1] ?></a></li> + <li><a href="http://www.archlinux.org/packages/?q=<?php echo urlencode($darr[0])?>" title="<?php echo __('View packages details for').' '.$darr[0].$darr[1] ?>"><?php echo $darr[0].$darr[1] ?></a></li> <?php endif; ?> <?php endwhile; ?> </ul> -- 1.7.11.1
The corresponding closing "</div>" tag is only printed if the if-branch is taken, which results in broken HTML code if the if-branch is skipped. Move the "<div>" tag so that either both or none of the tags are included in the generated HTML code. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- web/template/pkg_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 67110fa..023fef1 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -160,8 +160,8 @@ if ($atype == "Developer" || $atype == "Trusted User"): <div id="pkgfiles" class="listing"> <h3><?php echo __('Sources') ?></h3> </div> - <div> <?php if (count($sources) > 0): ?> + <div> <ul> <?php while (list($k, $src) = each($sources)): -- 1.7.11.1
participants (1)
-
Lukas Fleischer