Merge pull request #20 from DenverCoder1:new-wallpaper
feat(site): Set default filename for random download
This commit is contained in:
commit
a3d7713fe4
|
@ -31,6 +31,9 @@ if (isset($_GET['random'])) {
|
|||
header('Content-Type: image/gif');
|
||||
}
|
||||
|
||||
// set default filename
|
||||
header('Content-Disposition: inline; filename="' . basename($random_image_path) . '"');
|
||||
|
||||
// return the contents of the image at the url
|
||||
exit(file_get_contents($random_image_path));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue