From 1a289d262b5d9a519541adca01e21dfd83930a14 Mon Sep 17 00:00:00 2001 From: Federico Poloni Date: Fri, 8 Jan 2016 14:35:16 +0100 Subject: [PATCH] changed documentation of getPdfLink As requested by @monperrus in a comment to the pull request https://github.com/monperrus/bibtexbrowser/pull/51/files#r49186982 --- bibtexbrowser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 48f777b..2a7b2ba 100755 --- a/bibtexbrowser.php +++ b/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);