summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class6
1 files changed, 3 insertions, 3 deletions
diff --git a/it_url.class b/it_url.class
index 125f5d2..7b364d2 100644
--- a/it_url.class
+++ b/it_url.class
@@ -45,7 +45,7 @@ class it_url
* Constructor: canonicalize an URL
* @param $url URL this object represents
*/
-function it_url($url = null)
+function __construct($url = null)
{
$this->rawurl = $url;
$comp = parse_url($url);
@@ -124,7 +124,7 @@ function get($p=null, $timeout=5)
{
$url = $this;
if ($p['url'])
- $this->it_url($p['url']);
+ $this->__construct($p['url']);
}
else # called statically
$url = new it_url($p['url']);
@@ -250,7 +250,7 @@ function request($p=array())
{
$url = $this;
if ($p['url'])
- $this->it_url($p['url']);
+ $this->__construct($p['url']);
$url->headers = array();
$p['headers'] = (array)$p['headers'] + self::_default_headers($url, $p);