Skip to content

Commit

Permalink
update server and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tazzios committed Sep 17, 2021
1 parent 7a4e902 commit b1fa7df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content_plugin/pdfviewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function onContentPrepare($context, &$article, &$params, $page = 0)
$jdownloadsid = '';
// check if there is a jdownloadsid or file tag parameters
if ( isset($tagparameters['jdownloadsid']) ) {
$path= JPATH_ROOT . 'administrator/components/com_jdownloads';
$path= JPATH_ROOT . '/administrator/components/com_jdownloads';
if (file_exists( $path )) {
$jdownloadsid = $tagparameters['jdownloadsid'];
$filelink = JUri::base().'index.php?option=com_jdownloads&task=download.send&id='. $jdownloadsid ;
Expand Down
2 changes: 1 addition & 1 deletion content_plugin/pdfviewer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
</fields>
</config>
<updateservers>
<server type="extension" priority="2" name="pdfviewer">https://raw.githubusercontent.com/tazzios/pdfviewer/master/updates.xml</server>
<server type="extension" priority="2" name="pdfviewer">https://raw.githubusercontent.com/tazzios/pdfviewer/master/updates_plugin.xml</server>
</updateservers>
</extension>
5 changes: 4 additions & 1 deletion editor_button/pdfviewer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@

</fieldset>
</fields>
</config>
</config>
<updateservers>
<server type="extension" priority="2" name="pdfviewer">https://raw.githubusercontent.com/tazzios/pdfviewer/master/updates_button.xml</server>
</updateservers>
</extension>

0 comments on commit b1fa7df

Please sign in to comment.