]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Replace system.proc_windows config by PHP_OS test
[friendica.git] / src / App.php
index 22678f53ee531390893058cace2e14821d18683b..38c4370168ddfb04d7f765551e53df17d5950bac 100644 (file)
@@ -878,7 +878,7 @@ class App
                        return;
                }
 
-               if (Config::get('system', 'proc_windows')) {
+               if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
                        $resource = proc_open('cmd /c start /b ' . $cmdline, [], $foo, $this->get_basepath());
                } else {
                        $resource = proc_open($cmdline . ' &', [], $foo, $this->get_basepath());