aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2020-04-01 12:59:12 +0200
committerMax Kostikov <max@kostikov.co>2020-04-01 12:59:12 +0200
commitc136c142b8148abe75696ca0076a107f04e74d30 (patch)
treef888b92964a1e3aad70f3254a7243bdf6aec8a2b /Zotlabs
parent4a56b77f64f1483bc933a69a70be02df2f8f9187 (diff)
downloadvolse-hubzilla-c136c142b8148abe75696ca0076a107f04e74d30.tar.gz
volse-hubzilla-c136c142b8148abe75696ca0076a107f04e74d30.tar.bz2
volse-hubzilla-c136c142b8148abe75696ca0076a107f04e74d30.zip
Use config instead pconfig
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Daemon/Expire.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php
index 4bdf7ddeb..f3f42df6f 100644
--- a/Zotlabs/Daemon/Expire.php
+++ b/Zotlabs/Daemon/Expire.php
@@ -9,12 +9,12 @@ class Expire {
cli_startup();
- if ($pid = get_pconfig(0, 'expire', 'procid', false) && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
+ if ($pid = get_config('expire', 'procid', false) && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
logger('Expire: procedure already run with PID ' . $pid, LOGGER_DEBUG);
return;
}
- set_pconfig(0, 'expire', 'procid', getmypid());
+ set_config('expire', 'procid', getmypid());
// perform final cleanup on previously delete items
@@ -98,6 +98,6 @@ class Expire {
logger('Expire: sys: done', LOGGER_DEBUG);
}
- del_pconfig(0, 'expire', 'procid');
+ del_config('expire', 'procid');
}
}