Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -39,7 +39,17 @@ class _s3Delete extends \IPS\Task
|
||||
{
|
||||
$s3 = \IPS\Db::i()->select( '*', 'core_s3_deletions' )->first();
|
||||
|
||||
$keys = \IPS\File::getClass('core_Theme')->getContainerKeys( $s3['s3_container'], 101, '', $s3['s3_marker'] );
|
||||
$obj = \IPS\File::getClass('core_Theme');
|
||||
|
||||
if ( !( $obj instanceof \IPS\File\Amazon ) )
|
||||
{
|
||||
/* Class is not Amazon, so just stop here and truncate the table as there's nothing we can really do now. */
|
||||
\IPS\Db::i()->delete( 'core_s3_deletions' );
|
||||
\IPS\Db::i()->update( 'core_tasks', array( 'enabled' => 0 ), array( '`key`=?', 's3_delete' ) );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
$keys = $obj->getContainerKeys( $s3['s3_container'], 101, '', $s3['s3_marker'] );
|
||||
|
||||
if ( \count( $keys ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user