Skip to content

Commit

Permalink
Complete a todo item
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 19, 2014
1 parent 2d8eec6 commit 55704bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions imp/lib/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,9 @@ public function __get($key)
return $thread;

case 'url':
/* @todo: This is available in Horde_Imap_Client 2.24.0 */
$url = new Horde_Imap_Client_Url();
if ($this->init) {
$url->hostspec = $this->getParam('hostspec');
$url->port = $this->getParam('port');
$url->protocol = $this->isImap() ? 'imap' : 'pop';
}
return $url;
return $this->init
? $this->_ob->url
: new Horde_Imap_Client_Url();
}
}

Expand Down
2 changes: 1 addition & 1 deletion imp/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@
<package>
<name>Horde_Imap_Client</name>
<channel>pear.horde.org</channel>
<min>2.23.0</min>
<min>2.24.0</min>
<max>3.0.0alpha1</max>
<exclude>3.0.0alpha1</exclude>
</package>
Expand Down

0 comments on commit 55704bb

Please sign in to comment.