]> git.mxchange.org Git - friendica.git/blobdiff - include/queue.php
Merge pull request #1518 from tugelbend/develop
[friendica.git] / include / queue.php
index bc3cc258cc8c0ce04f56b038ebc1deb8161ee242..128dfcba57dd25dc18e8d339468680f5aa03551a 100644 (file)
@@ -84,7 +84,7 @@ function queue_run(&$argv, &$argc){
        load_config('config');
        load_config('system');
 
-       $lockpath = get_config('system','lockpath');
+       $lockpath = get_lockpath();
        if ($lockpath != '') {
                $pidfile = new pidfile($lockpath, 'queue');
                if($pidfile->is_already_running()) {
@@ -265,6 +265,6 @@ function queue_run(&$argv, &$argc){
 }
 
 if (array_search(__file__,get_included_files())===0){
-  queue_run($argv,$argc);
+  queue_run($_SERVER["argv"],$_SERVER["argc"]);
   killme();
 }