Explorar o código

Dolphin Migration Tool, fix for Albums Add/Edit Pictures.
There were no photos for edit for transferred albums.

AlexeyUna %!s(int64=8) %!d(string=hai) anos
pai
achega
ed7ac7e712

+ 2 - 3
modules/boonex/dolphin_migration/classes/BxDolMPhotoAlbums.php

@@ -129,11 +129,10 @@ class BxDolMPhotoAlbums extends BxDolMData
 				$sImagePath = $this -> _sImagePhotoFiles . "{$aValue['ID']}.{$aValue['Ext']}";				
 				$sImagePath = $this -> _sImagePhotoFiles . "{$aValue['ID']}.{$aValue['Ext']}";				
 				if (file_exists($sImagePath))
 				if (file_exists($sImagePath))
 				{
 				{
-					$oStorage = BxDolStorage::getObjectInstance('bx_albums_files'); 
-					$iId = $oStorage -> storeFileFromPath($sImagePath, false, $iProfileId);					
+					$oStorage = BxDolStorage::getObjectInstance('bx_albums_files');
+					$iId = $oStorage -> storeFileFromPath($sImagePath, false, $iProfileId, $iNewAlbumID);
 					if ($iId)
 					if ($iId)
 					{ 
 					{ 
-						$oStorage -> afterUploadCleanup($iId, $iProfileId);
                         $this -> updateFilesDate($iId, $aValue['Date']);
                         $this -> updateFilesDate($iId, $aValue['Date']);
 						
 						
 						$sQuery = $this -> _oDb -> prepare("INSERT INTO `bx_albums_files2albums` SET `content_id` = ?, `file_id` = ?, `data` = ?, `title` = ?", $iNewAlbumID, $iId, $aValue['Size'], $aValue['Title']);
 						$sQuery = $this -> _oDb -> prepare("INSERT INTO `bx_albums_files2albums` SET `content_id` = ?, `file_id` = ?, `data` = ?, `title` = ?", $iNewAlbumID, $iId, $aValue['Size'], $aValue['Title']);