From 6541247bd33838557d931b82c92cf4e554808aa3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 15 Jul 2014 08:47:36 +0200 Subject: [PATCH] Use the GUID to refer to items (preparation for future changes) --- include/text.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/text.php b/include/text.php index 4d6aa8697a..3c08fe3785 100644 --- a/include/text.php +++ b/include/text.php @@ -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'];