Skip to content

Commit

Permalink
Merge pull request XoopsModules25x#32 from aerograf/master
Browse files Browse the repository at this point in the history
Fix PDF
  • Loading branch information
mambax7 authored Sep 14, 2017
2 parents 9445a07 + ef21683 commit f4739c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,13 +622,13 @@ public function showPost($isAdmin)

$thread_action = [];
// irmtfan add pdf permission
if (file_exists(XOOPS_PATH . '/vendor/tcpdf/tcpdf.php')
if (!is_file(XOOPS_PATH . '/class/libraries/vendor/tecnickcom/tcpdf/tcpdf.php')
&& $topicHandler->getPermission($forum_id, $topic_status, 'pdf')) {
$thread_action['pdf']['image'] = newbbDisplayImage('pdf', _MD_NEWBB_PDF);
$thread_action['pdf']['link'] = XOOPS_URL . '/modules/newbb/makepdf.php?type=post&pageid=0';
$thread_action['pdf']['name'] = _MD_NEWBB_PDF;
$thread_action['pdf']['target'] = '_blank';
}
}
// irmtfan add print permission
if ($topicHandler->getPermission($forum_id, $topic_status, 'print')) {
$thread_action['print']['image'] = newbbDisplayImage('printer', _MD_NEWBB_PRINT);
Expand Down

0 comments on commit f4739c9

Please sign in to comment.