From: nodiscc Date: Tue, 21 Oct 2014 16:09:33 +0000 (+0200) Subject: Merge pull request #30 from nodiscc/master X-Git-Tag: v0.0.43beta~37 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=736feea58ea3ea08df8681cfc6a01914cf0c6331;hp=c4a329ede2d19d3a9431334176d9bebf35d6bb96;p=github%2Fshaarli%2FShaarli.git Merge pull request #30 from nodiscc/master add link: in case of empty URL (self-post), prepend "Note: " to the title --- diff --git a/index.php b/index.php index 294600d0..01872f4d 100644 --- a/index.php +++ b/index.php @@ -1587,7 +1587,11 @@ function renderPage() } } } - if ($url=='') $url='?'.smallHash($linkdate); // In case of empty URL, this is just a text (with a link that point to itself) + if ($url=='') // In case of empty URL, this is just a text (with a link that points to itself) + { + $url='?'.smallHash($linkdate); + $title='Note: '; + } $link = array('linkdate'=>$linkdate,'title'=>$title,'url'=>$url,'description'=>$description,'tags'=>$tags,'private'=>$private); }