From 556de318aeeef6019bb7628389beee1358de93f8 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 24 Jan 2011 18:08:29 +0100 Subject: Build URLs from package names (fixes FS#15308, FS#19327). Drop the "URLPath" field from the "Packages" table, build URLs from package names instead. Signed-off-by: Lukas Fleischer --- web/template/pkg_details.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web/template/pkg_details.php') diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 8dd3d28..a8da6c9 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -173,8 +173,9 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[ $src = $src[0]; # It is presumably an internal source if ($row["LocationID"] == 2) { - echo "$src
\n"; + $urlpath = URL_DIR . $row['Name']; + echo ""; + echo "$src
\n"; } } } -- cgit v1.2.3-54-g00ecf