# HG changeset patch # User Dan # Date 1210900287 14400 # Node ID 36ea553da7ba09c21ab8bb03607b065fe12bf542 # Parent 3d8ec1f7d191ad8189ed76bde329d63890f36419 Oops - maybe it should also detect the file extension properly diff -r 3d8ec1f7d191 -r 36ea553da7ba plugins/gallery/fetcher.php --- a/plugins/gallery/fetcher.php Thu May 15 21:10:19 2008 -0400 +++ b/plugins/gallery/fetcher.php Thu May 15 21:11:27 2008 -0400 @@ -99,10 +99,11 @@ die('Bad width or height'); } + $ext = get_file_extension($row['img_filename']); + $src_filename = ENANO_ROOT . '/files/' . $row['img_filename']; $dest_filename = ENANO_ROOT . '/cache/' . $row['img_filename'] . "-embed-$width-$height.$ext"; $filename =& $dest_filename; - $ext = get_file_extension($filename); if ( !file_exists($dest_filename) ) {