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:
nodiscc 2014-10-21 18:09:33 +02:00
commit 736feea58e

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