Commit a6037a1f8fd6137ae5971e9221e1dfbcbce2de57

Authored by Benjamin Renard
1 parent 6743dfac

Fix bug during AMDA_IHM installation without proxy

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
php/my_config.template.php
... ... @@ -28,8 +28,12 @@ define('MAX_UPLOADED_FILESIZE',{:MAX_UPLOADED_FILESIZE:}); // in bytes !!!
28 28 define('GATEWAY_TIMEOUT','{:GATEWAY_TIMEOUT:}');
29 29  
30 30 // To define only if you are behind a proxy
31   -define('PROXY_HOST','{:PROXY_HOST:}');
32   -define('PROXY_USERPWD','{:PROXY_USERPWD:}');
  31 +if (!empty("{:PROXY_HOST:}")) {
  32 + define('PROXY_HOST','{:PROXY_HOST:}');
  33 + if (!empty("{:PROXY_USERPWD:}")) {
  34 + define('PROXY_USERPWD','{:PROXY_USERPWD:}');
  35 + }
  36 +}
33 37  
34 38 define('NEWMETA', '{:NEWMETA:}');
35 39 define('AMDA_SPASE_INTERFACE', '{:AMDA_SPASE_INTERFACE:}');
... ...