Use the GUID to refer to items (preparation for future changes)

This commit is contained in:
Michael Vogel 2014-07-15 08:47:36 +02:00
parent bb5f797047
commit 6541247bd3
1 changed files with 3 additions and 2 deletions

View File

@ -1629,10 +1629,11 @@ function get_plink($item) {
if ($a->user['nickname'] != "") {
$ret = array(
'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
//'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
'href' => $a->get_baseurl()."/display/".$item['guid'],
'orig' => $a->get_baseurl()."/display/".$item['guid'],
'title' => t('link to source'),
);
$ret["orig"] = $ret["href"];
if (x($item,'plink'))
$ret["href"] = $item['plink'];