mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-51242-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
854695ee3f
1 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,15 @@ class manager {
|
|||
'debug' => empty($CFG->debugimap) ? null : fopen('php://stderr', 'w'),
|
||||
);
|
||||
|
||||
if (strpos($configuration['hostspec'], ':')) {
|
||||
$hostdata = explode(':', $configuration['hostspec']);
|
||||
if (count($hostdata) === 2) {
|
||||
// A hostname in the format hostname:port has been provided.
|
||||
$configuration['hostspec'] = $hostdata[0];
|
||||
$configuration['port'] = $hostdata[1];
|
||||
}
|
||||
}
|
||||
|
||||
$this->client = new \Horde_Imap_Client_Socket($configuration);
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue