1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 01:34:31 +01:00

staff usernames on PM notes to link to PM composition, not edit user.

This commit is contained in:
Savetheinternet 2011-12-04 11:25:34 +11:00
parent a8cccb7b95
commit b8a143756c

View File

@ -2486,10 +2486,7 @@
$_query->bindValue(':id', $note['mod']);
$_query->execute() or error(db_error($_query));
if($_mod = $_query->fetch()) {
if(hasPermission($config['mod']['editusers']))
$staff = '<a href="?/users/' . $note['mod'] . '">' . utf8tohtml($_mod['username']) . '</a>';
else
$staff = utf8tohtml($_mod['username']);
$staff = '<a href="?/new_PM/' . $note['mod'] . '">' . utf8tohtml($_mod['username']) . '</a>';
} else {
$staff = '<em>???</em>';
}