changed documentation of getPdfLink

As requested by @monperrus in a comment to the pull request https://github.com/monperrus/bibtexbrowser/pull/51/files#r49186982
This commit is contained in:
Federico Poloni
2016-07-31 14:52:17 +02:00
parent c6f82792bd
commit 1a289d262b
+3 -1
View File
@@ -1198,7 +1198,9 @@ class BibEntry {
return $link;
}
/** returns a "[pdf]" link if relevant. modified to exploit the new method, while keeping backward compatibility */
/** returns a "[pdf]" link for the entry, if possible.
Tries to get the target URL from the 'pdf' field first, then from 'url' or 'file'.
*/
function getPdfLink($iconurl = NULL, $label = 'pdf') {
if ($this->hasField('pdf')) {
return $this->getLink('pdf', $iconurl, $label);