Explorar o código

default to imap server address

tokul %!s(int64=20) %!d(string=hai) anos
pai
achega
354961a4a9
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      plugins/change_password/backend/ldap.php

+ 4 - 1
plugins/change_password/backend/ldap.php

@@ -7,6 +7,9 @@
  * @subpackage change_password
  */
 
+/** get imap server global */
+global $imapServerAddress;
+
 /** Default plugin configuration.*/
 /**
  * Address of ldap server.
@@ -22,7 +25,7 @@
  * @global string $cpw_ldap_server
  */
 global $cpw_ldap_server;
-$cpw_ldap_server='localhost';
+$cpw_ldap_server=$imapServerAddress;
 
 /**
  * Port of ldap server.