add link: in case of empty URL (self-post), prepend "Note: " to the title

* Thanks to qwertygc (https://github.com/shaarli/Shaarli/pull/23)
 * Fix small typo
This commit is contained in:
nodiscc 2014-10-20 19:14:52 +02:00
parent c4a329ede2
commit 27646ca5b4

View file

@ -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);
}