]> git.mxchange.org Git - friendica.git/blobdiff - mod/settings.php
Edited view/sv/registrations-top.tpl via GitHub
[friendica.git] / mod / settings.php
index 32906d86e7c9017e9b31d91a081da06a94740f37..ebe07612eb1fa152a0a5d6c74ec60ec15e8c73cf 100644 (file)
@@ -179,11 +179,9 @@ function settings_post(&$a) {
 
        if($old_visibility != $net_publish) {
                // Update global directory in background
-               $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
                $url = $_SESSION['my_url'];
                if($url && strlen(get_config('system','directory_submit_url')))
-                       proc_close(proc_open("\"$php_path\" \"include/directory.php\" \"$url\" &",
-                               array(),$foo));
+                       proc_run('php',"include/directory.php","$url");
        }
 
        $_SESSION['theme'] = $theme;