Oops - maybe it should also detect the file extension properly
authorDan
Thu, 15 May 2008 21:11:27 -0400
changeset 28 36ea553da7ba
parent 27 3d8ec1f7d191
child 29 205d0534a0f2
Oops - maybe it should also detect the file extension properly
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) )
       {