Created
April 9, 2013 12:08
-
-
Save mneuhaus/5345188 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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