diff options
author | Mario <mario@mariovavti.com> | 2024-03-24 09:58:21 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-24 09:58:21 +0000 |
commit | a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3 (patch) | |
tree | e156db21df2251b8c67e61453c8f4af9f9460d2f /Zotlabs/Daemon/Cron_daily.php | |
parent | ecdd9a4d6edd769a3e2c3b0604e4637d94fa1a51 (diff) | |
parent | 0dc959d9fe40bddce5e99b8162bb0e770fc28ed9 (diff) | |
download | volse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.tar.gz volse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.tar.bz2 volse-hubzilla-a0cfe22501dc9daa7dd8cff86803cf494a1f5ec3.zip |
Merge branch 'deprecate-include-config-in-core' into 'dev'
Deprecate *_config() functions in core.
See merge request hubzilla/core!2114
Diffstat (limited to 'Zotlabs/Daemon/Cron_daily.php')
-rw-r--r-- | Zotlabs/Daemon/Cron_daily.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Cron_daily.php b/Zotlabs/Daemon/Cron_daily.php index 98379be1b..3bc267f08 100644 --- a/Zotlabs/Daemon/Cron_daily.php +++ b/Zotlabs/Daemon/Cron_daily.php @@ -2,6 +2,7 @@ namespace Zotlabs\Daemon; +use Zotlabs\Lib\Config; use Zotlabs\Lib\Libzotdir; class Cron_daily { @@ -68,7 +69,7 @@ class Cron_daily { // Clean up cache q("DELETE FROM cache WHERE updated < %s - INTERVAL %s", db_utcnow(), - db_quoteinterval(get_config('system', 'cache_expire_days', 7) . ' DAY') + db_quoteinterval(Config::Get('system', 'cache_expire_days', 7) . ' DAY') ); //update statistics in config @@ -82,7 +83,7 @@ class Cron_daily { // expire old delivery reports - $keep_reports = intval(get_config('system', 'expire_delivery_reports')); + $keep_reports = intval(Config::Get('system', 'expire_delivery_reports')); if ($keep_reports === 0) $keep_reports = 10; @@ -103,7 +104,7 @@ class Cron_daily { $date = datetime_convert(); call_hooks('cron_daily', $date); - set_config('system', 'last_expire_day', intval(datetime_convert('UTC', 'UTC', 'now', 'd'))); + Config::Set('system', 'last_expire_day', intval(datetime_convert('UTC', 'UTC', 'now', 'd'))); /** * End Cron Daily |