mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-03-13 05:51:10 +00:00
fix callback on trigger star feature
This commit is contained in:
parent
32884e1733
commit
14ee992930
@ -311,7 +311,14 @@ echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<span class="float-right margin-l-12">
|
||||
<a rel="nofollow" href="<?php echo WEBSITE_URL ?>/action.php?target=magnet&toggle=star&magnetId=<?php echo $magnet->magnetId ?>&callback=<?php echo base64_encode(sprintf('%s/magnet.php?magnetId=%s', WEBSITE_URL, $magnet->magnetId)) ?>" title="<?php echo _('Star') ?>">
|
||||
<a rel="nofollow" href="<?php echo sprintf('%s/action.php?target=magnet&toggle=star&magnetId=%s&callback=%s',
|
||||
WEBSITE_URL,
|
||||
$magnet->magnetId,
|
||||
base64_encode(sprintf('%s/index.php?%s#magnet-%s',
|
||||
WEBSITE_URL,
|
||||
($request->query ? sprintf('&query=%s', urlencode($request->query)) : false).
|
||||
($request->page ? sprintf('&page=%s', urlencode($request->page)) : false),
|
||||
$magnet->magnetId))) ?>" title="<?php echo _('Star') ?>">
|
||||
<?php if ($magnet->star->status) { ?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">
|
||||
<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user