]> git.mxchange.org Git - friendica.git/blobdiff - include/create_shadowentry.php
Bugfix for bugfix :-)
[friendica.git] / include / create_shadowentry.php
index 4027024f9959d16f53b05eb29a858d5c0deaaf50..005295c97898b261dc820b0f1ad36177c65440eb 100644 (file)
@@ -5,10 +5,13 @@
  *
  * This script is started from mod/item.php to save some time when doing a post.
  */
+
+use \Friendica\Core\Config;
+
 require_once("boot.php");
 require_once("include/threads.php");
 
-function create_shadowentry_run(&$argv, &$argc) {
+function create_shadowentry_run($argv, $argc) {
        global $a, $db;
 
        if (is_null($a))
@@ -21,8 +24,7 @@ function create_shadowentry_run(&$argv, &$argc) {
                unset($db_host, $db_user, $db_pass, $db_data);
        }
 
-       load_config('config');
-       load_config('system');
+       Config::load();
 
        if ($argc != 2) {
                return;