Browse Source

add a tag with href argument for clickable images

Ahwx 2 years ago
parent
commit
0ce966d236
1 changed files with 2 additions and 1 deletions
  1. 2 1
      search.php

+ 2 - 1
search.php

@@ -41,7 +41,8 @@ $search = function($query) use($baseurl)
         $image = $result->{"images"}->{"orig"};
         $url = $image->{"url"};
         array_push($images, $url);
-        echo "<img src='/image_proxy.php?url=", $url, "'>";
+        echo "<a href='/image_proxy.php?url=", $url, "'>";
+        echo "<img src='/image_proxy.php?url=", $url, "'></a>";
     }
     return $images;
 };