diff options
author | Christian Schneider | 2019-02-12 14:50:15 +0100 |
---|---|---|
committer | Christian Schneider | 2019-02-12 14:50:15 +0100 |
commit | 2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa (patch) | |
tree | 2b106438df71fdd2f797a4320f1950008a1d8589 /it_url.class | |
parent | aafd95fc673f850503fdbe342ce17cdbd24d5c49 (diff) | |
download | itools-2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa.tar.gz itools-2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa.tar.bz2 itools-2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa.zip |
Migrate old style constructors to __construct, temporary transition functions for it_dbi (map, mapgen) and it_user (ad, login_user)
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 6 |
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); |