Skip to content

Commit

Permalink
com_mendeley expects file extension in parameter named "type"
Browse files Browse the repository at this point in the history
  • Loading branch information
vladykin committed Jun 9, 2014
1 parent a617be7 commit 62cd669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/mendeley.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private function formatDoc($doc, \mendeley\DocFormatter $formatter, $user) {
$item = htmlspecialchars($formatter->format($doc));
foreach ($doc->files as $file) {
$item .= ' <a class="btn btn-mini" href="'
. JURI::base(true) .'/index.php?option=com_mendeley&amp;user=' . $user . '&amp;doc=' . $doc->id . '&amp;file=' . $file->file_hash . '&amp;ext=' . $file->file_extension
. JURI::base(true) .'/index.php?option=com_mendeley&amp;user=' . $user . '&amp;doc=' . $doc->id . '&amp;file=' . $file->file_hash . '&amp;type=' . $file->file_extension
. '"><span class="icon-download-alt"></span> ' . strtoupper($file->file_extension) . '</a>';
}
return $item;
Expand Down

0 comments on commit 62cd669

Please sign in to comment.