Issue-#3873

Replace deprecated functions with new syntax.
This commit is contained in:
Adam Magness 2017-11-06 21:22:52 -05:00
parent 9eb1f4b9c3
commit 0dfa57948f
124 changed files with 819 additions and 679 deletions

View file

@ -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;
}