mirror of
https://github.com/friendica/friendica
synced 2025-04-22 16:30:11 +00:00
Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
parent
9eb1f4b9c3
commit
0dfa57948f
124 changed files with 819 additions and 679 deletions
|
@ -18,9 +18,9 @@ function cronhooks_run(&$argv, &$argc) {
|
|||
return;
|
||||
}
|
||||
|
||||
$last = get_config('system', 'last_cronhook');
|
||||
$last = Config::get('system', 'last_cronhook');
|
||||
|
||||
$poll_interval = intval(get_config('system', 'cronhook_interval'));
|
||||
$poll_interval = intval(Config::get('system', 'cronhook_interval'));
|
||||
if (! $poll_interval) {
|
||||
$poll_interval = 9;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ function cronhooks_run(&$argv, &$argc) {
|
|||
}
|
||||
}
|
||||
|
||||
$a->set_baseurl(get_config('system', 'url'));
|
||||
$a->set_baseurl(Config::get('system', 'url'));
|
||||
|
||||
logger('cronhooks: start');
|
||||
|
||||
|
@ -48,7 +48,7 @@ function cronhooks_run(&$argv, &$argc) {
|
|||
|
||||
logger('cronhooks: end');
|
||||
|
||||
set_config('system', 'last_cronhook', time());
|
||||
Config::set('system', 'last_cronhook', time());
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue