]> git.mxchange.org Git - friendica.git/blobdiff - include/cronhooks.php
Merge remote-tracking branch 'upstream/develop' into more-temp-stuff
[friendica.git] / include / cronhooks.php
index 7524a0c3a8883c80b4a914e54093d7cfa9351508..72b86be427cc9f4dc034f5f64fb50aef5f4640a8 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 
-require_once("boot.php");
+use \Friendica\Core\Config;
 
+require_once("boot.php");
 
 function cronhooks_run(&$argv, &$argc){
        global $a, $db;
@@ -20,8 +21,7 @@ function cronhooks_run(&$argv, &$argc){
        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") {