Added the possibility to put a description in the bookmarklet's URL
This commit is contained in:
parent
002ef0e5c8
commit
3057373a25
1 changed files with 3 additions and 2 deletions
|
@ -1538,7 +1538,8 @@ function renderPage()
|
|||
$link_is_new = true; // This is a new link
|
||||
$linkdate = strval(date('Ymd_His'));
|
||||
$title = (empty($_GET['title']) ? '' : $_GET['title'] ); // Get title if it was provided in URL (by the bookmarklet).
|
||||
$description=''; $tags=''; $private=0;
|
||||
$description = (empty($_GET['description']) ? '' : $_GET['description'] )."\n"; // Get description if it was provided in URL (by the bookmarklet). [Bronco added that]
|
||||
$tags=''; $private=0;
|
||||
if (($url!='') && parse_url($url,PHP_URL_SCHEME)=='') $url = 'http://'.$url;
|
||||
// If this is an HTTP link, we try go get the page to extact the title (otherwise we will to straight to the edit form.)
|
||||
if (empty($title) && parse_url($url,PHP_URL_SCHEME)=='http')
|
||||
|
|
Loading…
Reference in a new issue