[pLog-svn] r6486 - plog/branches/lifetype-1.2/class/gallery/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Thu May 29 09:45:46 EDT 2008
Author: jondaley
Date: 2008-05-29 09:45:45 -0400 (Thu, 29 May 2008)
New Revision: 6486
Modified:
plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
Log:
similar bug as #1366. Thanks luredan!
Modified: plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php 2008-05-26 20:23:36 UTC (rev 6485)
+++ plog/branches/lifetype-1.2/class/gallery/dao/galleryresourcestorage.class.php 2008-05-29 13:45:45 UTC (rev 6486)
@@ -46,7 +46,7 @@
// if relative path, like e.g. "./gallery/"...
if (strpos($resourcesStorageFolder,'.') === 0)
- $resourcesStorageFolder = rtrim( PLOG_CLASS_PATH ,'/').ltrim($resourcesStorageFolder,'.');
+ $resourcesStorageFolder = rtrim( PLOG_CLASS_PATH ,'/').ltrim($resourcesStorageFolder,'.');
return $resourcesStorageFolder;
}
@@ -233,7 +233,11 @@
// move the file to the temporaray folder first
$config =& Config::getConfig();
$tmpFolder = $config->getValue( "temp_folder" );
- /*$files = HttpVars::getFiles();*/
+
+ // if relative path, like e.g. "./tmp/"...
+ if(strpos($tmpFolder, '.') === 0)
+ $tmpFolder = rtrim(PLOG_CLASS_PATH, '/') . ltrim($tmpFolder, '.');
+
// we don't need the parameter in the constructor though it is necessary
// according to the signature of the method
$uploads = new FileUploads( null );
More information about the pLog-svn
mailing list