Browse Source

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

pull/1052/head
Michael Vogel 7 years ago
parent
commit
6541247bd3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      include/text.php

+ 3
- 2
include/text.php 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'];


Loading…
Cancel
Save