Use the GUID to refer to items (preparation for future changes)
This commit is contained in:
parent
bb5f797047
commit
6541247bd3
1 changed files with 3 additions and 2 deletions
|
@ -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'];
|
||||
|
|
Loading…
Reference in a new issue