aboutsummaryrefslogtreecommitdiffstats
path: root/view.php
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-10-30 16:36:30 -0400
committerSquibid <me@zacharyscheiman.com>2023-10-30 16:36:30 -0400
commit662df0d550fc94e77e101fe1bbea567ee5096e32 (patch)
tree4746ab66b890d8f6aa0efac53a793f8d6025ed05 /view.php
parent0ba2dab8acccb1200df067f290e099eae6c79c45 (diff)
downloadwallheaven-662df0d550fc94e77e101fe1bbea567ee5096e32.tar.gz
wallheaven-662df0d550fc94e77e101fe1bbea567ee5096e32.tar.bz2
wallheaven-662df0d550fc94e77e101fe1bbea567ee5096e32.zip
keep category, and purity of wallpaper when looking at similar ones
Diffstat (limited to '')
-rw-r--r--view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.php b/view.php
index 47777d0..006ead2 100644
--- a/view.php
+++ b/view.php
@@ -34,7 +34,7 @@
?>
</div>
<?php
- printf("<hr><details id='tags' open><summary>Tags<a id='similar' href='/query.php?q=like:%s'>Similar Wallpapers</a></summary>\n", $matches[0]);
+ printf("<hr><details id='tags' open><summary>Tags<a id='similar' href='/query.php?q=like:%s&%s=on&%s=on'>Similar Wallpapers</a></summary>\n", $matches[0], ucfirst($res["category"]), toupperpurity($res["purity"]));
foreach ($res["tags"] as $tags)
printf("<span title='%s' id='%s'><a href='/query.php?q=id:%s'>%s</a></span>\n", $tags["alias"], $tags["purity"], $tags["id"], $tags["name"]);
?>