Merge pull request #30 from nodiscc/master
add link: in case of empty URL (self-post), prepend "Note: " to the title
This commit is contained in:
commit
736feea58e
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue