summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-09-14 01:58:00 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-09-14 01:58:00 +0000
commit7771fab25c2230f1ff547c4f2c7ba37909709068 (patch)
tree1f432d7c74683e08e214a24850f8fb57e9e78c11 /modules/aggregator/aggregator.module
parent793486909fb330e500c2f81bf851f860e08689f6 (diff)
downloadbrdo-7771fab25c2230f1ff547c4f2c7ba37909709068.tar.gz
brdo-7771fab25c2230f1ff547c4f2c7ba37909709068.tar.bz2
Aggregator.module: code comments say items older than 3 months get discarded automatically, but the limit in the code is in fact set for 2 weeks.
Changing to 3 months (caught by drumm).
Diffstat (limited to 'modules/aggregator/aggregator.module')
-rw-r--r--modules/aggregator/aggregator.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 30a14a233..7c16f06dc 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -558,7 +558,7 @@ function aggregator_parse_feed(&$data, $feed) {
** Remove all items that are older than 3 months:
*/
- $age = time() - 1209600; // 3 month
+ $age = time() - 8035200; // 60 * 60 * 24 * 31 * 3
$result = db_query('SELECT iid FROM {aggregator_item} WHERE fid = %d AND timestamp < %d', $feed['fid'], $age);
if (db_num_rows($result)) {