mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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 <archlinux@cryptocrack.de>
This commit is contained in:
parent
0bb2a7b514
commit
556de318ae
6 changed files with 32 additions and 27 deletions
|
@ -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 "<a href='".dirname($row['URLPath'])."/".$row['Name'];
|
||||
echo "/$src'>$src</a><br />\n";
|
||||
$urlpath = URL_DIR . $row['Name'];
|
||||
echo "<a href='$urlpath/$src'>";
|
||||
echo "$src</a><br />\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue