plugins/gallery/fetcher.php
changeset 28 36ea553da7ba
parent 27 3d8ec1f7d191
child 30 689b095d02cf
--- 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) )
       {