summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-15 19:12:08 -0500
committerBharat Mediratta <bharat@menalto.com>2013-02-15 19:12:08 -0500
commit0dd12caa6f4c0452167b0e621a01bee28e71b0af (patch)
treedd2ec5f64421eb28c4e279d9b3bb960a749f009a
parentc97fe4bcdde3201ca416d61e38cd8afb4503dca2 (diff)
Follow-on to 7bdccade98e76df3a7830bc45bc42321a77c709a - point out that there's
duplicated code in gallery_event.
-rw-r--r--modules/gallery/helpers/gallery_task.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_task.php b/modules/gallery/helpers/gallery_task.php
index 856d2639..37de2f93 100644
--- a/modules/gallery/helpers/gallery_task.php
+++ b/modules/gallery/helpers/gallery_task.php
@@ -281,6 +281,7 @@ class gallery_task_Core {
switch ($task->get("mode", "init")) {
case "init":
$threshold = time() - 1209600; // older than 2 weeks
+ // Note that this code is roughly duplicated in gallery_event::gallery_shutdown
foreach(array("logs", "tmp") as $dir) {
$dir = VARPATH . $dir;
if ($dh = opendir($dir)) {