فهرست منبع

default to imap server address

tokul 20 سال پیش
والد
کامیت
354961a4a9
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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.