From f92db4f5e750358bf49f4aa81d6f91b00e006494 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 2 Sep 2005 16:50:12 +0100 Subject: purging of old posts is actually configurable now, added comments for some configuration options, interface cleanups --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index ab9b571fe..9df335188 100644 --- a/functions.php +++ b/functions.php @@ -4,9 +4,9 @@ define('MAGPIE_OUTPUT_ENCODING', 'UTF-8'); function purge_old_posts() { - if (PURGE_OLD_DAYS) { + if (PURGE_OLD_DAYS > 0) { $result = pg_query("DELETE FROM ttrss_entries WHERE - date_entered < NOW() - INTERVAL '30 days'"); + date_entered < NOW() - INTERVAL '".PURGE_OLD_DAYS." days'"); } } -- cgit v1.2.3