Skip to content

Commit

Permalink
fix: dont export pdfs if user is not logged in and show correct icon
Browse files Browse the repository at this point in the history
  • Loading branch information
modelrailroader committed Sep 15, 2024
1 parent 9885e18 commit ff3ddfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpmyfaq/assets/templates/default/faq.twig
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@
{{ msgAddBookmark }}
</a>
</li>
{% endif %}
<li class="list-group-item bg-transparent">
<i aria-hidden="true" class="bi bi-file-pdf"></i>
<a target="_blank" href="{{ linkToPdf }}" rel="noopener" class="text-decoration-none">
{{ msgPdf }}
</a>
</li>
{% endif %}
{% if enableSendToFriend == true %}
<li class="list-group-item bg-transparent">
<i aria-hidden="true" class="bi bi-share"></i>
Expand Down
2 changes: 1 addition & 1 deletion phpmyfaq/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
$link->text = $text;
$link->tooltip = Translation::get('msgCategoryUp');

$up = sprintf('<i class="bi bi-level-up" aria-hidden="true"></i> %s', $link->toHtmlAnchor());
$up = sprintf('<i class="bi bi-arrow-90deg-up"></i> %s', $link->toHtmlAnchor());
}

if (!is_null($categoryData->getImage()) && strlen((string) $categoryData->getImage()) > 0) {
Expand Down

0 comments on commit ff3ddfe

Please sign in to comment.