LSaddon::phpldapadmin: fix default config to avoid PHP warning in CLI mode

This commit is contained in:
Benjamin Renard 2024-02-19 19:58:51 +01:00
parent e8781ab779
commit e9c49c242f
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -21,4 +21,8 @@
******************************************************************************/
// PhpLdapAdmin View Object URL format
define('LS_PHPLDAPADMIN_VIEW_OBJECT_URL_FORMAT','//'.$_SERVER['SERVER_NAME'].'/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=%{dn}');
define(
'LS_PHPLDAPADMIN_VIEW_OBJECT_URL_FORMAT',
'//'.(isset($_SERVER['SERVER_NAME'])?$_SERVER['SERVER_NAME']:gethostname()).
'/phpldapadmin/cmd.php?cmd=template_engine&server_id=0&dn=%{dn}'
);