diff options
author | friendica <info@friendica.com> | 2014-03-27 18:53:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-27 18:53:14 -0700 |
commit | 8c3efd20f4a56517d714bc533549251f41308d7e (patch) | |
tree | 03181740e12c8c25ce92ff3c08a41f000f13fe43 | |
parent | 1177f97a50b2b7917fb9bed64d8b746617163fb8 (diff) | |
download | volse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.tar.gz volse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.tar.bz2 volse-hubzilla-8c3efd20f4a56517d714bc533549251f41308d7e.zip |
this should work a bit better
-rw-r--r-- | include/externals.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/externals.php b/include/externals.php index 80476d4a7..244b4a59e 100644 --- a/include/externals.php +++ b/include/externals.php @@ -28,11 +28,14 @@ function externals_run($argv, $argc){ } if($url) { - $days = intval(get_config('externals','since_days')); + logger('externals: pulling public content from ' . $url, LOGGER_DEBUG); + $days = get_config('externals','since_days'); if($days === false) $days = 15; - $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . $days . ' days')); + $feedurl = $url . '/zotfeed?f=&mindate=' . urlencode(datetime_convert('','','now - ' . intval($days) . ' days')); + + logger('externals: pulling public content from ' . $feedurl, LOGGER_DEBUG); $x = z_fetch_url($feedurl); if(($x) && ($x['success'])) { @@ -45,7 +48,7 @@ function externals_run($argv, $argc){ array(array('hash' => $sys['xchan_hash'])), false, true); $total ++; } - logger('import_public_posts: ' . $total . ' messages imported', LOGGER_DEBUG); + logger('externals: import_public_posts: ' . $total . ' messages imported', LOGGER_DEBUG); } } } |