summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Merrill <napalminc@gmail.com>2010-11-02 05:52:37 -0700
committerPaul Merrill <napalminc@gmail.com>2010-11-02 05:52:37 -0700
commit80099c87e6f2acd5c5397e5c8a25ad4916d8a1ca (patch)
tree9b05a807738aca28b9091857a2bee298c41dafb5
parentef39c6ab47cdde0ec9e57fd6022af1c2e55bbdec (diff)
Use PNG extension for all thumbnails.
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 5872a9c9..c8b51df2 100644
--- a/index.php
+++ b/index.php
@@ -73,7 +73,7 @@
$post['extension'] = substr($post['filename'], strrpos($post['filename'], '.') + 1);
$post['file_id'] = rand(0, 1000000000);
$post['file'] = DIR_IMG . $post['file_id'] . '.' . $post['extension'];
- $post['thumb'] = DIR_THUMB . $post['file_id'] . '.jpg';
+ $post['thumb'] = DIR_THUMB . $post['file_id'] . '.png';
if(!in_array($post['extension'], $allowed_ext)) error(ERROR_FILEEXT);
}
@@ -190,4 +190,4 @@
header('Location: ' . ROOT . FILE_INDEX, true, 302);
}
-?> \ No newline at end of file
+?>