diff options
author | nodiscc <nodiscc@gmail.com> | 2015-04-01 11:56:42 +0200 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2015-04-01 11:56:42 +0200 |
commit | 82cfe1fe9649880e9653c61bdc51455af32e7bcd (patch) | |
tree | 50d69deeb8529ed2ed321fde653183967d63ba64 /index.php | |
parent | a5752e776c9ee5ee5a711a76e8c8066ee88f7192 (diff) | |
parent | b47f515ad3a58b791dd03008b11f52081f6f9d88 (diff) | |
download | Shaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.tar.gz Shaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.tar.zst Shaarli-82cfe1fe9649880e9653c61bdc51455af32e7bcd.zip |
Merge pull request #183 from pikzen/fix-absolute-urls
Display notes as absolute URLs (for real)
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 | } |