pkg_details: Use correct clone URL

The clone URLs should use the pkgbase name, not the pkgname itself

Reported-by: Jonathan Steel <jsteel@archlinux.org>
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Johannes Löthberg 2015-06-08 20:04:47 +02:00 committed by Lukas Fleischer
parent fcbfaf6a37
commit 3b9cb66a1e

View file

@ -1,8 +1,8 @@
<?php <?php
$cgit_uri = config_get('options', 'cgit_uri'); $cgit_uri = config_get('options', 'cgit_uri');
$git_clone_uri_anon = sprintf(config_get('options', 'git_clone_uri_anon'), htmlspecialchars($row['Name'])); $git_clone_uri_anon = sprintf(config_get('options', 'git_clone_uri_anon'), htmlspecialchars($row['BaseName']));
$git_clone_uri_priv = sprintf(config_get('options', 'git_clone_uri_priv'), htmlspecialchars($row['Name'])); $git_clone_uri_priv = sprintf(config_get('options', 'git_clone_uri_priv'), htmlspecialchars($row['BaseName']));
$uid = uid_from_sid($SID); $uid = uid_from_sid($SID);