From ddbe6d0d335ba7bc7170ad234667ca62f638bd3b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 1 Mar 2011 11:56:41 -0600 Subject: Remove dead dependency/required by link code For some reason we were doing this song and dance "iterate all the known parameters" business. This is totally unnecessary, clutters the links, and was spewing errors all over the place, so kill it. Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'web/template') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 49586b9..6a624e9 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -111,18 +111,12 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[ echo "". __("Dependencies").""; while (list($k, $darr) = each($deps)) { - $url = " ".$darr[1].$darr[3].""; + } else { + echo " ".$darr[1].$darr[3].""; } - reset($pkgsearch_vars); - # $darr[3] is the DepCondition - if ($darr[2] == 0) echo $url."'>".$darr[1].$darr[3].""; - else echo " ".$darr[1].$darr[3].""; } if (count($requiredby) > 0) { @@ -135,20 +129,9 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[ echo "". __("Required by").""; while (list($k, $darr) = each($requiredby)) { - $url = " " . $darr[1] . ""; - } - else { + echo " ".$darr[1].""; + } else { print "".$darr[1].""; } } -- cgit v1.2.3-70-g09d2