summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-02 16:50:12 +0100
committerAndrew Dolgov <[email protected]>2005-09-02 16:50:12 +0100
commitf92db4f5e750358bf49f4aa81d6f91b00e006494 (patch)
tree6620a77ddef83d885c90c13e651ab7f3e504ca37 /functions.php
parentf179a35d12b50f5c1667726236c2d8e015861ef6 (diff)
purging of old posts is actually configurable now, added comments for some configuration options, interface cleanups
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
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'");
}
}