projects
/
bizou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bugfix in file extension detection
[bizou.git]
/
index.php
diff --git
a/index.php
b/index.php
index
db2a590
..
b9b7309
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-9,7
+9,7
@@
function getPreview($imgFile, $maxSize = THUMB_SIZE)
if (! is_file($newImgFile))
{
- $ext = strtolower(substr($file, -4));
+ $ext = strtolower(substr($imgFile, -4));
if ($ext == ".jpg")
$img = imagecreatefromjpeg($imgFile);
else