aboutsummaryrefslogtreecommitdiff
path: root/www/tt-rss/files/patch-functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/tt-rss/files/patch-functions.php')
-rw-r--r--www/tt-rss/files/patch-functions.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/tt-rss/files/patch-functions.php b/www/tt-rss/files/patch-functions.php
new file mode 100644
index 000000000000..031782a700e1
--- /dev/null
+++ b/www/tt-rss/files/patch-functions.php
@@ -0,0 +1,14 @@
+--- ./functions.php.orig 2011-04-21 13:52:41.000000000 +0200
++++ ./functions.php 2011-04-21 22:13:21.000000000 +0200
+@@ -7348,9 +7348,9 @@
+
+ if ($query) {
+ if (DB_TYPE == "pgsql") {
+- $query .= " AND ttrss_entries.date_entered > NOW() - INTERVAL '30 days'";
++ $query = " ($query) AND ttrss_entries.date_entered > NOW() - INTERVAL '14 days'";
+ } else {
+- $query .= " AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 30 DAY";
++ $query = " ($query) AND ttrss_entries.date_entered > DATE_SUB(NOW(), INTERVAL 14 DAY";
+ }
+ $query .= " AND ";
+ }