Commit 13fe30de authored by Christoph Hofmann's avatar Christoph Hofmann

update

parent f9179124
......@@ -147,6 +147,10 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
$count = 0;
while ($row = $statement->fetch()) {
$count ++;
if ($row['uid'] == 1077) {
debug('1077');
debug($file->getParentFolder());
}
$identifier = $row['storage'].':'.$row['identifier'];
$moveOK = false;
$file = null;
......@@ -336,6 +340,10 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
private function checkMoveOK(\TYPO3\CMS\Core\Resource\File $file)
{
$st = $file->getStorage();
try { $file->getParentFolder();}
catch (Exception\FolderDoesNotExistException $e) {
return false;
}
if ($file->getParentFolder()->getIdentifier() == $st->getRootLevelFolder()->getIdentifier()) {
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment