mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
made author's name in comment a link to his profile
This commit is contained in:
parent
f99ef319fd
commit
549bae520a
1 changed files with 8 additions and 2 deletions
|
@ -189,7 +189,7 @@ function package_comments($pkgid=0) {
|
||||||
$comments = array();
|
$comments = array();
|
||||||
if ($pkgid) {
|
if ($pkgid) {
|
||||||
$dbh = db_connect();
|
$dbh = db_connect();
|
||||||
$q = "SELECT PackageComments.ID, UserName, Comments, CommentTS ";
|
$q = "SELECT PackageComments.ID, UserName, UsersID, Comments, CommentTS ";
|
||||||
$q.= "FROM PackageComments, Users ";
|
$q.= "FROM PackageComments, Users ";
|
||||||
$q.= "WHERE PackageComments.UsersID = Users.ID";
|
$q.= "WHERE PackageComments.UsersID = Users.ID";
|
||||||
$q.= " AND PackageID = ".mysql_escape_string($pkgid);
|
$q.= " AND PackageID = ".mysql_escape_string($pkgid);
|
||||||
|
@ -502,9 +502,15 @@ function package_details($id=0, $SID="") {
|
||||||
|
|
||||||
print $durl . " ";
|
print $durl . " ";
|
||||||
}
|
}
|
||||||
print __("Comment by: %h%s%h on %h%s%h",
|
if ($SID) {
|
||||||
|
print __("Comment by: %h%s%h on %h%s%h",
|
||||||
|
array("<a href='/account.php?Action=AccountInfo&ID=".$carr["UsersID"]."'><b>",$carr["UserName"],"</b></a>",
|
||||||
|
"<i>",date("Ymd [H:i:s]",$carr["CommentTS"]),"</i>"));
|
||||||
|
} else {
|
||||||
|
print __("Comment by: %h%s%h on %h%s%h",
|
||||||
array("<b>",$carr["UserName"],"</b>",
|
array("<b>",$carr["UserName"],"</b>",
|
||||||
"<i>",date("Ymd [H:i:s]",$carr["CommentTS"]),"</i>"));
|
"<i>",date("Ymd [H:i:s]",$carr["CommentTS"]),"</i>"));
|
||||||
|
}
|
||||||
print "</span>";
|
print "</span>";
|
||||||
print "<tr><td class='boxSoft'>";
|
print "<tr><td class='boxSoft'>";
|
||||||
print "<code>\n";
|
print "<code>\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue