Commit 69bcccbd authored by Christoph Hofmann's avatar Christoph Hofmann

update

parent 3a58ef66
......@@ -89,15 +89,8 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
*
* @var array
*/
protected $dontMoveFolders = [
'0:/',
'1:/downloads/Partner/',
'1:/downloads/Register/',
'1:/typo3conf/',
'1:/tutorials/',
'1:/Dummy_Download_for_Template/',
'1:/downloads/Dummy_Download_for_Template/'
];
protected $dontMoveFolders = [];
/**
* Function executed from the Scheduler.
* Sends an email
......@@ -111,6 +104,15 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
/** @var \TYPO3\CMS\Core\Resource\ResourceStorage $storage */
/** @var \TYPO3\CMS\Core\Database\ConnectionPool $connectionPool */
/** @var ResourceFactory $resourceFactory */
$this->dontMoveFolders = [
'0:/',
'1:/downloads/Partner/',
'1:/downloads/Register/',
'1:/typo3conf/',
'1:/tutorials/',
'1:/Dummy_Download_for_Template/',
'1:/downloads/Dummy_Download_for_Template/',
];
$resourceFactory = GeneralUtility::makeInstance(ResourceFactory::class);
$success = FALSE;
$this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\ObjectManager::class);
......@@ -128,6 +130,7 @@ class CleanupFiles extends \TYPO3\CMS\Scheduler\Task\AbstractTask {
exit;
}
$table = 'sys_file';
$connectionPool = GeneralUtility::makeInstance(ConnectionPool::class);
$queryBuilder = $connectionPool->getQueryBuilderForTable($table);
......
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