From: Hypolite Petovan Date: Mon, 2 Jul 2018 11:47:42 +0000 (-0400) Subject: Replace system.proc_windows config by PHP_OS test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89e4629c16d7eaf3d78878f7c401f862aa5dd96f;p=friendica.git Replace system.proc_windows config by PHP_OS test --- diff --git a/src/App.php b/src/App.php index 22678f53ee..38c4370168 100644 --- a/src/App.php +++ b/src/App.php @@ -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());