diff options
author | Florian Eula <mr.pikzen@gmail.com> | 2015-04-01 11:47:04 +0200 |
---|---|---|
committer | Florian Eula <mr.pikzen@gmail.com> | 2015-04-01 11:47:04 +0200 |
commit | b47f515ad3a58b791dd03008b11f52081f6f9d88 (patch) | |
tree | 50d69deeb8529ed2ed321fde653183967d63ba64 /index.php | |
parent | a5752e776c9ee5ee5a711a76e8c8066ee88f7192 (diff) | |
download | Shaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.tar.gz Shaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.tar.zst Shaarli-b47f515ad3a58b791dd03008b11f52081f6f9d88.zip |
Display notes as absolute URLs
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1938,6 +1938,12 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1938 | $taglist = explode(' ',$link['tags']); | 1938 | $taglist = explode(' ',$link['tags']); |
1939 | uasort($taglist, 'strcasecmp'); | 1939 | uasort($taglist, 'strcasecmp'); |
1940 | $link['taglist']=$taglist; | 1940 | $link['taglist']=$taglist; |
1941 | |||
1942 | if ($link["url"][0] === '?' && // Check for both signs of a note: starting with ? and 7 chars long. I doubt that you'll post any links that look like this. | ||
1943 | strlen($link["url"]) === 7) { | ||
1944 | $link["url"] = indexUrl() . $link["url"]; | ||
1945 | } | ||
1946 | |||
1941 | $linkDisp[$keys[$i]] = $link; | 1947 | $linkDisp[$keys[$i]] = $link; |
1942 | $i++; | 1948 | $i++; |
1943 | } | 1949 | } |