[pLog-svn] r5224 - plog/branches/lifetype-1.2/class/gallery/dao

mark at devel.lifetype.net mark at devel.lifetype.net
Thu Mar 29 14:35:18 EDT 2007


Author: mark
Date: 2007-03-29 14:35:18 -0400 (Thu, 29 Mar 2007)
New Revision: 5224

Modified:
   plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
Log:
Fixed a bug reported by hlps9999.

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-29 17:24:50 UTC (rev 5223)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php	2007-03-29 18:35:18 UTC (rev 5224)
@@ -244,7 +244,7 @@
 			if( $config->getValue( "resources_naming_rule" ) == "encoded_file_name" )
 				$origFile = $tmpFolder."/".rawurlencode($upload->getFileName());
 			else
-				$origFile = $tmpFolder."/".$upload->basename(getFileName());
+				$origFile = $tmpFolder."/".basename($upload->getFileName());
 
 			//do not use storeFile method because I have change filename in $tmpFolder.
 			//$destFile = $this->storeFile( $resourceId, $ownerId, $origFile, RESOURCE_STORAGE_STORE_MOVE );



More information about the pLog-svn mailing list