[pLog-svn] r4908 - plog/branches/lifetype-1.2/class/gallery/dao
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Fri Mar 2 07:16:37 EST 2007
Author: oscar
Date: 2007-03-02 07:16:37 -0500 (Fri, 02 Mar 2007)
New Revision: 4908
Modified:
plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
Log:
Preview files were not being deleted when the resource was deleted.
Modified: plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php 2007-03-02 07:59:20 UTC (rev 4907)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php 2007-03-02 12:16:37 UTC (rev 4908)
@@ -337,12 +337,12 @@
// and now if preview images are available, remove them too!
if( $resource->hasPreview()) {
// delete the small thumbnail
- $previewFile = $resource->getPreviewFileName();
+ $previewFile = $this->getPreviewsFolder( $resource->getOwnerId()).$resource->getPreviewFileName();
if( File::isReadable( $previewFile ))
File::delete( $previewFile );
// and the medium-sized thumbnail
- $medPreviewFile = $resource->getMediumSizePreviewFileName();
+ $medPreviewFile = $this->getMediumSizePreviewsFolder( $resource->getOwnerId()).$resource->getMediumSizePreviewFileName();
if( File::isReadable( $medPreviewFile ))
File::delete( $medPreviewFile );
}
More information about the pLog-svn
mailing list