improved the detection, for the case the webserver is started manualy

This commit is contained in:
Ralf Becker 2002-09-24 01:29:14 +00:00
parent 63c28e56bd
commit 96111faf8f

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$ui = ''; // html UI, which UI to use, should come from api and be in $GLOBALS['phpgw']??? $ui = ''; // html UI, which UI to use, should come from api and be in $GLOBALS['phpgw']???
if ($_ENV['DISPLAY']) if ($_ENV['DISPLAY'] && isset($_SERVER['_']))
{ {
$ui = '_gtk'; $ui = '_gtk';
} }