]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
add link: in case of empty URL (self-post), prepend "Note: " to the title
[github/shaarli/Shaarli.git] / index.php
index 294600d0e001a5464395d190ad9014e8cdf082b0..01872f4df1d3ce78a056ab1a32f8a6650d2b2629 100644 (file)
--- 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);
         }