Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created April 9, 2013 12:08
Show Gist options
  • Save mneuhaus/5345188 to your computer and use it in GitHub Desktop.
Save mneuhaus/5345188 to your computer and use it in GitHub Desktop.
diff --git a/class.tx_dammam_sync.php b/class.tx_dammam_sync.php
index 86395a6..20917ea 100644
--- a/class.tx_dammam_sync.php
+++ b/class.tx_dammam_sync.php
@@ -508,7 +508,7 @@ class tx_dammam_sync extends tx_scheduler_Task {
'Path' => $subPath,
'Last modification' => date('d.m.y H:i:s', filemtime($subPath)),
'Asset' => isset($this->assetIndex[$subPath]) ? $this->assetIndex[$subPath] : array()
- ));
+ ), 1);
if (is_file($subPath) && !is_dir($subPath)) {
unlink($subPath);
}
@@ -544,13 +544,13 @@ class tx_dammam_sync extends tx_scheduler_Task {
'Path' => $path,
'Last modification' => date('H:i:s d.m.Y', $stat['mtime']),
'Files' => $subPaths
- ));
+ ), 1);
rmdir($path);
} else {
$this->log('Found empty Folder which has been modified in the last 30 min: ' . basename($path), array(
'Path' => $path,
'Last modification' => date('H:i:s d.m.Y', $stat['mtime'])
- ));
+ ), 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment