From 2a1db64b3ab5e0050807f7f9dbcfe29b72809aaa Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 12 Feb 2019 14:50:15 +0100 Subject: Migrate old style constructors to __construct, temporary transition functions for it_dbi (map, mapgen) and it_user (ad, login_user) --- it_url.class | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'it_url.class') 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); -- cgit v1.2.3