<?php
-require_once("boot.php");
+use \Friendica\Core\Config;
+require_once("boot.php");
function cronhooks_run(&$argv, &$argc){
global $a, $db;
require_once('include/session.php');
require_once('include/datetime.php');
- load_config('config');
- load_config('system');
+ Config::load();
// Don't check this stuff if the function is called by the poller
if (App::callstack() != "poller_run") {