diff --git a/query.php b/query.php index 2cfa97f..0d55f1c 100644 --- a/query.php +++ b/query.php @@ -23,7 +23,18 @@ $res = getwallpapers("https://wallhaven.cc/api/v1/search?q=".$_GET["q"]."&purity=".$purity."&categories=".$categories."&page=".$page); /* explain query */ - printf("
%s Wallpapers found for \"%s\"
%s Wallpapers found", $res[1]["total"]); + else { + if (preg_match("/like:/", $_GET["q"])) + printf("
%s Wallpapers found \"%s\"
", $res[1]["total"], $_GET["q"], $humanreadable); + else + printf("%s Wallpapers found for \"%s\"
", $res[1]["total"], $_GET["q"], $humanreadable); + } + printf("