[Picfinity-commit] SF.net SVN: picfinity: [34] trunk/index.php
Status: Beta
Brought to you by:
espadav8
From: <esp...@us...> - 2007-08-13 17:49:53
|
Revision: 34 http://picfinity.svn.sourceforge.net/picfinity/?rev=34&view=rev Author: espadav8 Date: 2007-08-13 10:49:32 -0700 (Mon, 13 Aug 2007) Log Message: ----------- Check for the thumbnail at the same time as we check $create_thumbnails. Should avoid a function call, not sure if this really saves time Modified Paths: -------------- trunk/index.php Modified: trunk/index.php =================================================================== --- trunk/index.php 2007-08-13 13:47:37 UTC (rev 33) +++ trunk/index.php 2007-08-13 17:49:32 UTC (rev 34) @@ -157,7 +157,7 @@ if (in_array($ext, $valid_image_formats)) { // create a thumbnail if we've been told to - if ($create_thumbnails) + if (($create_thumbnails) && (!file_exists('.thumbs/' . $folder . '/' . $folder_entry))) { create_thumbnail($folder, $folder_entry, $ext); } @@ -223,11 +223,6 @@ global $thumbnail_width; global $thumbnail_height; - if (file_exists('.thumbs/'.$folder.'/'.$image)) - { - // if it already exists, do nothing - return; - } if (!is_dir('.thumbs/'.$folder)) { MakeDirectory('.thumbs/'.$folder, 0777); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |