diff options
Diffstat (limited to 'include/externals.php')
-rw-r--r-- | include/externals.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/externals.php b/include/externals.php index 48aeaf6b3..946931033 100644 --- a/include/externals.php +++ b/include/externals.php @@ -28,7 +28,11 @@ function externals_run($argv, $argc){ } if($url) { - $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - 15 days')); + $days = intval(getconfig('externals','since_days')); + if($days === false) + $days = 15; + + $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . $days . ' days')); $x = z_fetch_url($feedurl); if(($x) && ($x['success'])) { |