Browse Source

changed documentation of getPdfLink

As requested by @monperrus in a comment to the pull request https://github.com/monperrus/bibtexbrowser/pull/51/files#r49186982
pull/51/head
Federico Poloni 10 years ago
parent
commit
1a289d262b
  1. 4
      bibtexbrowser.php

4
bibtexbrowser.php

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

Loading…
Cancel
Save